Use the file upload from the dropbox api to create an Android app. But upload speed is only about 30 kb. Is there a way to speed it up?
try {
InputStream inputStream = new FileInputStream(localFile);
if(type == Define.DROPBOX_IDCARD){
return mDbxClient.files().uploadBuilder("/id_card/" + remoteFileName)
.withMode(WriteMode.OVERWRITE)
.uploadAndFinish(inputStream);
}else if(type == Define.DROPBOX_SECRET){
return mDbxClient.files().uploadBuilder("/secret/" + remoteFileName)
.withMode(WriteMode.OVERWRITE)
.uploadAndFinish(inputStream);
}
} catch (DbxException | IOException e) {
mException = e;
}