I want to get the imageview image saved in the database and make the last saved image come back when I open the app
code to transform the image into a byte
ByteArrayOutputStream saida = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG,100,saida);
imagem = saida.toByteArray();
bitmap byte
bitmap = BitmapFactory.decodeByteArray(imagem, 0, imagem.length);
imageView.setImageBitmap(bitmap);
I have a test with two imageview, I get the image I transform into a byte, then a byte to the image and I put it in imageview 2, but when I try to do this, the image does not appear