-
Notifications
You must be signed in to change notification settings - Fork 703
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
Infinite cycle with MediaHttpDownloader setContentRange download #1101
Comments
Thank you for filing this issue. |
I use release 1.23.0
This method never ends. But expected, that it will download only 1kb. |
I have exactly the same problem. I started palying with Google Drive JAVA API and everything is quite satisfactory so far with the exception of this problem. I understand that the same goal (partial file download) can be achieved by using lower level HTTP requests but I am unfamiliar with HTTP. Here is my code: public byte[] downloadPartial(String googleID, long start, long size) throws GoogleDriveClientException{ If I comment the line |
So basically I am asking for help. Can anybody suggest few lines of Java code to set the Content Range in some other way, before I take great pains to understand HTTP |
When trying to
The process never ends, because of
mediaContentLength
always is maximum content Range and expression:if( mediaContentLength <= nextByteIndex ) { ... return; }
never give
true
The text was updated successfully, but these errors were encountered: