All Questions
Tagged with http-chunked java
9 questions
13
votes
1
answer
19k
views
How To Stream Chunked Response With Spring Boot @RestController
I have spent like a day on this and I am unable to find a solution that works. In our application we have a couple of endpoints that can return large responses. I have been trying to find a ...
1
vote
0
answers
736
views
using chunked encoding request with variable chunk size in Java (HttpUrlConnection)
I'm searching for weeks now to find a solution how to use chunked transfer encoding in a Java client without coding my own myHttpURLConnection.
The HttpUrlConnection of Java expects a fixed chunk ...
7
votes
3
answers
18k
views
Java HTTP server sending chunked response
I am working on a Java application which has a built in HTTP server, at the moment the server is implemented using ServerSocketChannel, it listens on port 1694 for requests:
msvrCh = ...
1
vote
1
answer
6k
views
Using HttpClient 4.1 to decode chunked data
I am using HttpClient to send a request a server which is supposed to return xml data. This data is returned as chunked data. I am then trying to write the received xml data to a file. The code I use ...
6
votes
3
answers
33k
views
Reading file chunk by chunk
I want to read a file piece by piece. The file is split up into several pieces which are stored on different types of media. What I currently do is call each seperate piece of the file and then merge ...
0
votes
1
answer
754
views
Http Response Entity on upload to S3 is not empty but is acting like it
I'm trying to upload a file to my Amazon S3 bucket with authorization. I know that my signature works: using the same url, headers, and signature with hurl.it leads to a successful upload.
I also ...
9
votes
1
answer
4k
views
Can HTTP multipart and chunking coexist?
I'm using apache HttpClient to post several files to server. Here's the code:
public static HttpResponse stringResponsePost(String urlString, String content, byte[] image,
HttpContext ...
2
votes
1
answer
4k
views
Java: How to download chunked content correctly?
I have to download file which HTTP response is "Transfer-Encoding: Chunked", because of what I can't to «getContentLength» to allocate new bytes buffer for DataInputStream.
Can you advice me how to do ...
21
votes
0
answers
5k
views
HttpURLConnection buffering rather than streaming, despite setting chunked streaming mode? [closed]
I am using HttpURLConnection to write files, some of which are quite large, to a server.
final HttpURLConnection conn = (HttpURLConnection) url.openConnection();
A while back I had issues writing ...