Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.azure.storage.blob.BlobClient.download(OutputStream stream) returns exception java.lang.UnsupportedOperationException #5386

Closed
jaschrep-msft opened this issue Sep 16, 2019 · 4 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Storage Storage Service (Queues, Blobs, Files)

Comments

@jaschrep-msft
Copy link
Member

No description provided.

@jaschrep-msft jaschrep-msft added Storage Storage Service (Queues, Blobs, Files) Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Sep 16, 2019
@jaschrep-msft
Copy link
Member Author

This bug was filed from an ICM. This is a bug on our side and will be fixed for GA.

@alzimmermsft
Copy link
Member

alzimmermsft commented Sep 19, 2019

This happens when ByteBuffer streamed from the underlying Flux has a null hb, which is non-null only for heap buffers. If we want to continue just using ByteBuffer directly this is fixable by either calling hasArray before attempting to get the underlying data or using get. If we want to pull in additional classes channel offers some nice handling for writting ByteBuffers to OutputStreams.

@alzimmermsft
Copy link
Member

alzimmermsft commented Sep 19, 2019

@vhvb1989 Roll this into your PR that is adding additional tests.

@ghost
Copy link

ghost commented Sep 25, 2019

Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

3 participants