1.使用Xutil 进行的文件下载
2.只要文件中有 中括号
,就会下载失败,另起一个名字, 可以下载成功
java.net.URISyntaxException: Illegal character in path at index 68...
at libcore.net.UriCodec.validate(UriCodec.java:63)
at java.net.URI.parseURI(URI.java:402)
08-16 10:06:50.183 31228-31228/ E/URIBuilder.<init>(L:55): Illegal character in path at index 68: http://***cn:8099/sczh//upload/5f534d87a3e148048b275ea5858f27f9[202]再试一下.doc
java.net.URISyntaxException: Illegal character in path at index 68: http://**h//upload/5f534d87a3e148048b275ea5858f27f9[202]再试一下.doc
at libcore.net.UriCodec.validate(UriCodec.java:63)
at java.net.URI.parseURI(URI.java:402)
at java.net.URI.<init>(URI.java:204)
at com.lidroid.xutils.http.client.util.URIBuilder.<init>(URIBuilder.java:53)
at com.lidroid.xutils.http.client.HttpRequest.setURI(HttpRequest.java:156)
at com.lidroid.xutils.http.client.HttpRequest.<init>(HttpRequest.java:60)
at com.lidroid.xutils.HttpUtils.download(HttpUtils.java:297)
at com.lidroid.xutils.HttpUtils.download(HttpUtils.java:263)
at com.fenghua.traffic.activity.GongGaoInfoActivity.onClick(GongGaoInfoActivity.java:193)
元芳怎么了
侃侃尔雅
相关分类