Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载之后的文件存放路径在哪里?没有找到。 #5

Open
yyh1992520 opened this issue Sep 16, 2015 · 7 comments
Open

下载之后的文件存放路径在哪里?没有找到。 #5

yyh1992520 opened this issue Sep 16, 2015 · 7 comments

Comments

@yyh1992520
Copy link

下载之后的文件存放路径在哪里?没有找到。

@bacy
Copy link
Owner

bacy commented Sep 16, 2015

download请求吗?download的target就是下载路径,自己设置

@yyh1992520
Copy link
Author

有没有一个下载的Demo,我设置的 target = Environment.getExternalStorageDirectory()+"XXXX/XX" 然后url是一个www.baidu.com/img/bd_logo1.png的图片,,然后在指定的路径没有找到呀。

@bacy
Copy link
Owner

bacy commented Sep 17, 2015

路径设置不对,多层文件夹,要先makeDir。文件名字也不应该有/这种字符

@yyh1992520
Copy link
Author

不对呀,,,我的target = Environment.getExternalStorageDirectory() + "/jft/Colorful/20150806/a.png"
用的是模拟器做的测试,,这个Environment.getExternalStorageDirectory() + "/jft/Colorful/20150806的路径是存在的。然后用httpTools.download进行请求,,result = onFinish.但是在路径下没找到a.png...你能不能写一个Demo发给我?我的QQ是283139789

@yyh1992520
Copy link
Author

还有在使用httpTools.download函数的时候,在只添加requestInfo.url = url 不设置requestInfo.params的情况下会使得getFullUrl()报错。把requestInfo.params = null 后,才不会报错,,需修改...

@yyh1992520
Copy link
Author

还有,你是用StringRequest的Get方法进行的请求,,你是在哪里转换成了Byte数据然后保存在本地的?我为什么没有找到相关的方法..还有那个Target的写法,能否给一个样式,,让人模仿一下,,

@bacy
Copy link
Owner

bacy commented Sep 17, 2015

不是StringRequest 是DownloadRequest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants