Skip to content

Init stream position to 0 for easier (de)serialization by client - #4

Open
kulana wants to merge 1 commit into
Cheranga:masterfrom
kulana:set-stream-position-to-0
Open

Init stream position to 0 for easier (de)serialization by client#4
kulana wants to merge 1 commit into
Cheranga:masterfrom
kulana:set-stream-position-to-0

Conversation

@kulana

@kulana kulana commented Feb 18, 2021

Copy link
Copy Markdown

Before uploading a file via stream I needed to set the stream position to 0, otherwise the uploaded filesize would be 0.
Also when downloading, setting the stream position to 0 before returning, the client can directly deserialize the stream instead of having to set position to 0 before deserialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants