简体   繁体   English

Dropbox api异常android

[英]dropbox api exception android

When i tried to download a file from dropbox using dropbox api in android then i got a exception something like this 当我尝试使用android中的dropbox api从Dropbox下载文件时,出现了类似这样的异常

DropboxException:DropboxServerException (nginx): 400 Bad Request ('rev' is not well-formed: "/storage/sdcard0/SMSbackUpTOSS/DropBox/allSMS_01-Sep-2015.txt")

I am getting exception in this line 我在这行中遇到异常

fd = mApi.getFileStream(fileSelected.path,
                        localFile.getPath());

Because no other line under this works. 因为在此下没有其他行有效。

But the same code in another project works fine. 但是,另一个项目中的相同代码也可以正常工作。 I dont understand why i am getting this exception!!! 我不明白为什么我会收到这个例外!!!

mApi.getFileStream(fileSelected.path, localFile.getPath() ); mApi.getFileStream(fileSelected.path, localFile.getPath() );

the second parameter here is rev, that is the revision of the file. 这里的第二个参数是rev,即文件的修订版。

You should try to use null if you want the latest revision. 如果要最新版本,则应尝试使用null

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM