I’ve searched a bit but can’t get a clear glimpse of it. How can I set a byte array of an Image into an ImageView? I tried with this but it didn’t work.
BufferedImage img = ImageIO.read(new ByteArrayInputStream(bytes));
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is how you can convert a
Bitmapto aByteArrayand aByteArrayto aBitmap:Convert Bitmap to ByteArray:
Convert ByteArray to Bitmap: