OfficeDev / Office-365-SDK-for-Android

Microsoft Services SDKs for Android produced by MS Open Tech.
https://dev.office.com/android
Other
224 stars 74 forks source link

run into an OOM #65

Closed Kammy6679 closed 9 years ago

Kammy6679 commented 9 years ago

Using the Office 365 SDK for Android and Office 365 SDK for iOS, we plan to access the OneDrive Business and stored data in our product.

We find that: our app runs into an OOM when using Office 365 SDK to upload/download a large file(about 30M or more). Do you have any suggestion for this issue?

Here is our download code: SharePointClient client = ODB_Manager.getInstance().getFileClient(); ListenableFuture<byte[]> future = client.getfiles().getById(id).asFile().addHeader("if-none-match", eTag).getContent();

Here is our upload code: ListenableFuture future = client.getfiles().getById(item.getid()).asFile().putContent(result);

marcote commented 9 years ago

@Kammy6679

Hi have an initial implementation for this issue: https://github.com/OfficeDev/Office-365-SDK-for-Android/blob/dev/tests/e2e-test-app/app/src/main/java/com/microsoft/office365/test/integration/tests/FilesTests.java#L205

We're planning to release a new version including your request.

Thanks, Marcos

Kammy6679 commented 9 years ago

Thank you Marcote. O(∩_∩)O~ We will try it.

marcote commented 9 years ago

@Kammy6679 we just released a new version with your request included. c3b68a34d407db1879ca19e21a8222d2efbc0ea7 Thanks