oogle.com/images/srpr/logo3w.png")); OutputStream outputStream = new FileOutputStream(new File("/tmp/logo3w.png")); try { HttpResponse response = request.execute(); response.download(outputStream); } finally { outputStream.close(); }
This method closes the content of the HTTP response from {@link #getContent()}.
This method does not close the given output stream.
@param outputStream destination output stream
@throws IOException I/O exception
@since 1.9