-
Notifications
You must be signed in to change notification settings - Fork 9
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
Download InputStream #10
Comments
I'm not sure I understand main problem. Could you give me a code sample to visualize it? |
Thanks for your report!
At 64 MiB This looks like a bug, it doesn't satisfy the specification:
For sure we also have a bug in |
It sounds like you're asking for an API change because you think it would be faster. Is |
FileInputStream works good but its need exist file in server side to download |
I'm sorry. I don't understand your use case and proposal. |
I have a panel web to explorer my buckets |
"Doctor it hurts when I move like this" It looks you can use jakarta.servlet.http.HttpServletResponse.getOutputStream() to immediately write from the HTTP server to the client, without storing anything on the server. Your HTTP server framework may even accept an InputStream directly like io.javalin.http.Context.result(InputStream resultStream) (FWIW, I'm not a Java guru) |
With regards to the 0 bytes at 64 MiB, created storj/uplink#99 |
project.downloadObject
InputStream close after 64mg writed
Works if use ByteStreams.copy(download, out)
But that away its needed write byte[] in server side,after create InputStream to download client side
It would be better to send Inputstream directly to the client side response to download object
The text was updated successfully, but these errors were encountered: