Tag Archives: custom response handler

Apache HttpClient 4 Custom Bytes ResponseHandler

An interesting thing I needed was to retrieve an image from a URL. HttpClient provides a BasicResponseHandler, which returns a String. I needed bytes in order to accomplish this, I had to implement my own response handler. Advertisements

Posted in Java | Tagged , , , , , | 1 Comment