Closed diogowbrito closed 7 years ago
Hi, any update on this issue?
@joseal82 We would be happy to review a pull request for this functionality. As of this time there is no planned support for InputStream in the SDK.
Large file upload introduced in #35 and released in 1.2.0
Thanks @daboxu for implementation, integration, and review assist.
Question for @daboxu: is there usage documentation available anywhere for large-file support we could link to for anyone who comes across this issue?
@iambmelt a section about uploading large file is here: https://github.com/OneDrive/onedrive-sdk-android/blob/master/docs/items.md#upload-a-large-file
@daboxu Thanks!
Right now, to upload a file a
byte[]
is required. This means the full contents of the file must be allocated in memory which may cause anOutOfMemoryError
.It would be a good enhancement to have the upload method receive an
InputStream
rather than abyte[]
.