Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

run into an OOM #65

Closed
Kammy6679 opened this issue Feb 5, 2015 · 3 comments
Closed

run into an OOM #65

Kammy6679 opened this issue Feb 5, 2015 · 3 comments
Labels

Comments

@Kammy6679
Copy link

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 marcote added the bug label Feb 5, 2015
@marcote marcote added this to the Immediate milestone Feb 5, 2015
@marcote
Copy link
Contributor

marcote commented Mar 4, 2015

@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
Copy link
Author

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

@marcote
Copy link
Contributor

marcote commented Mar 5, 2015

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

@marcote marcote closed this as completed Mar 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants