Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

getBlob returns unusable inputstream #8

Open
jottley opened this issue Jan 31, 2017 · 1 comment
Open

getBlob returns unusable inputstream #8

jottley opened this issue Jan 31, 2017 · 1 comment

Comments

@jottley
Copy link

jottley commented Jan 31, 2017

The SObjectsTemplate.getBlob method returns an InputStream. The inputstream is an instance of EofSensorInputStream which only allows a single use before the stream is automatically closed.

We need to validate that how we are using it is causing the stream to be closed when we are returning the object. If that is the case we need to change how we are implementing the ResponseExtractor to not cause the stream to be closed.

@jottley
Copy link
Author

jottley commented Feb 4, 2017

#10 Changes to exchange from execute and then uses the ByteArrayMessageConverter to handle the response. The ByteArray is then passed to a ByteArrayInputStream to maintain the method signature.

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