How would I be able to handle downloads using HttpResponse in Java? I made an HttpGet request to a specific site – the site returns the file to be downloaded. How can I handle this download? InputStream doesn’t seem to be able to handle it (or maybe I’m using it the wrong way.)
Share
Assuming you’re actually talking about HttpClient, Here’s an SSCCE:
Works fine here. Your problem lies somewhere else.