I want to get the header information from a webservice call. That service returns a image but need to also get the header information. For getting the image I simply pass inputstream to decodeStream method. How can one get the headers too from that?
Regards
Sunil
Look at the code that does HTTP requests. Perhaps it’s something along the lines of
(error handling and other details omitted in this snippet). Look up HttpResponse documentation, its
getFirstHeadermethod is your friend!