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

sharepoint-services-java - Is it possible to get InputStream from DocLibClient? #10

Open
danielsjolin opened this issue Apr 4, 2016 · 0 comments

Comments

@danielsjolin
Copy link

Hi.

I'm investigating if this SDK might be a good choice for my organization for sharepoint file handling via REST.
I'm using the DocLibClient from sharepoint-services-java to handle files and folders on a sharepoint site. When I'm downloading a file, I can see no other option than to call getFile which loads the entire file contents into a byte arrray. This of course consumes a lot of memory if it is a large file.

Is it possible to create a method with the following signature?

public ListenableFuture<InputStream> getFile(String path) {...}

This would allow us to handle the download from the stream in a convenient way.

Regards
Daniel Rehnberg

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant