简体   繁体   中英

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

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() );

the second parameter here is rev, that is the revision of the file.

You should try to use null if you want the latest revision.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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