Skip to content

Binary file alterd after transfered via HttpDataSource #2360

Closed Answered by paullatzelsperger
reisman234 asked this question in Q&A
Discussion options

You must be logged in to vote

There is many things that can go wrong here, like padding, offsets, endianism, encoding, file-system or OS specific weirdness...

The HTTP dataplane is intended for structured data (e.g. JSON) only, because binary data shouldn't be transmitted in HTTP responses (webserver-specific timeouts, body-size-limits, etc.). Transmitting binary is what the S3/BlobStore framework is optimised for.
Or you could send back a URL in the HTTP response, that points to the binary file. Then, in your client code, simply download the file from that URL. Of course the URL must be accessible to the client.

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@reisman234
Comment options

Comment options

You must be logged in to vote
1 reply
@reisman234
Comment options

Answer selected by reisman234
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@jimmarino
Comment options

@FlorianJa
Comment options

@jimmarino
Comment options

@FlorianJa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants