-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[FEATURE REQ] blobURL.stageBlock should be able to get length from the Flowable #4213
Comments
Thanks for the feedback. We have routed to the appropriate team for follow-up. cc: @mayurid |
@alzimmermsft could you consider this for Preview 2 / Preview 3? |
This will be added as a backlog item for further investigation during our Preview 3 sprint. |
Hi, @ohadbitt. Thank you for this feedback. Based on your use of Flowable, it sounds like you are using v11. You should be able to take advantage of TransferManager.uploadFromNonReplayableFlowable (excuse the name), which doesn't require a length parameter. A few more things to consider:
We would also be willing to consider your suggestion of an unsafe method or the use of this custom type if you would be able to offer some more details on those ideas. |
@ohadbitt I am going to close this issue as the PR I referenced has been merged. If you feel this does not adequately address your feature rquest, please feel free to reopen it or post a new issue. |
Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment. |
The Api is expecting a flowable to work with - so i have a flowable which does some mappings and such on the data, which is totally logical (not everything is in files and known length) and i end up with a byteBuffer the problem is that i need to know the length in advance ?!?!
So the only way for me to know the size is by blocking and creating a new flowable, I think there is a simple solution to this that could make it much better and it is to accept a flowable of a new class which will contain a ByteBuffer and the amount of the data to read from it.
If its not possible please help me achieve a better solution.
Another solution would be to simply allow an "unsafe" mode - as it looks from the UnexpectedLengthException exception that the right length is known
Thanks!
The text was updated successfully, but these errors were encountered: