URL imageUrl = new URL("http://192.168.0.103:8080/mm/showImage?id=2&fileName=fesc1cc.JPG&imgType=books" );
//URL imageUrl = new URL(url);
HttpURLConnection conn = (HttpURLConnection) imageUrl
.openConnection();
BufferedReader in = new BufferedReader(
new InputStreamReader(conn.getInputStream()));
StringBuffer buffer = new StringBuffer();
String inputLine;
while ((inputLine = in.readLine()) != null)
buffer.append(inputLine);
in.close();
conn.getResponseCode();
System.out.println(conn.getResponseCode());
System.out.println(buffer.toString());
conn.disconnect();
How can I convert the data I am receiving to Bitmap and display it in an image view.