-
Notifications
You must be signed in to change notification settings - Fork 235
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
createUploadProvider method is missing ! #644
Comments
hi @fiasko131 , the chunked upload is out with release version 1.3.1, try bump your version. testes with
and it works for me. |
Hi @daboxu , i've updated my dependencies and it works now. And I take the opportunity to go up an issue I posted on the sdk github for android: Thank you for spending time. Regards |
@fiasko131 sorry in the SDK I think we don't support that. The large file uploader is designed for uploading local large files. I looked up the Google Drive's documents and it seems they are the bottle neck of the uploading. I would suggest you download the Google Drive's file to local and then upload it to OneDrive. Thanks for letting me know there is a inputStream interface for Google Drive on Android, we will consider utilize it for future stories. |
@daboxu for my application I use sdks for Android of DropBox, Googledrive, and box. With these three sdks I can upload a file directly from a URL and therefore from an InputStream.
mediaContent.setLength(length);
Edit : Sorry for the presentation but I can not understand the function of insertion and tags. :(( |
@fiasko131 as far as I can read from your example of Box and Dropbox, they both provides the interface as an inputStream as the OneDriveSDK does. The problem is that the inputStream reading bytes from another cloud storage provider is very slow so that's why I proposed you use local storage as a cache. I am wondering have you tested with Box and DropBox with the same input stream? Looking forward for a performance test result. |
Hi @daboxu , Performed in 4g (download 7mb / s upload 4mb / s) Regards. |
@fiasko131 thanks for the video, what's your chunksize passed in? That could be a bottleneck I guess. .createUploadProvider(mOneDriveClient, input, poidOfFile, com.onedrive.sdk.extensions.Item.class)
.upload(Collections.singletonList(uploadOptions),
callback,
chunkSize,
maxRetry); |
@daboxu i try 320,640,1280 but no way....?? |
320 Bytes? The server side supports max 60 * 1024 * 1024 which is 60 MiB. |
Sorry 320x1024, 640x1024, 1280x1024 |
thanks for clarifying that, I will take a look to see how to uplaod from another cloud provider. Another approach you can try is the upload from uri API which is under preview, https://dev.onedrive.com/items/upload_url.htm. Unfortunately we don't have a plan to integrate it into SDK yet, so you need write the HttpRequest part by your self, while you can get the access token from the oneDrive client. |
ok @daboxu , |
As part of a repository clean up effort we are closing older issues. If this issue remains, please: open a new issue, reference this issue, and provide any additional details that may help in resolution. Thank you for your understanding as we work to improve our responsiveness. |
Hello,
i use SDK for Android :
My code:
My dependencies in my build.gradle:
I have the same issue if i try to compile the same dependencies in the new android project.
Any ideas?
Thanks
The text was updated successfully, but these errors were encountered: