Am working on a library, where the http call are implemented & in the response - httpentity have the binary data of a image in InputStream, for processing further its been converted as String in a library file[String str = EntityUtils.toString(httpResponse.getEntity())] and added to JSON, now am trying to get the input stream back from that String in the application layer.
Take the below scenario for understanding the issue: Working - ImageView is displayed with content InputStream inStream = getContentResolver().openInputStream(thisPhotoUri);Bitmap bm = BitmapFactory.decodeStream(inStream);ImageView view = (ImageView)findViewById(R.id.picture_frame); view.setImageBitmap(bm); Issue - ImageView is not displayed with image InputStream inStream = getContentResolver().openInputStream(thisPhotoUri);String str = inStream.toString();InputStream is = new ByteArrayInputStream(str.getBytes());Bitmap bm = BitmapFactory.decodeStream(is);ImageView view = (ImageView)findViewById(R.id.picture_frame); view.setImageBitmap(bm); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

