I have an ImageView
that contains an image, what I need is to make a getImage() of the ImageView
and convert it to an InputStream
. This is the code that I have:
try {
File fileImage = new File(ivImage.getImage());
InputStream isImage = (InputStream) new FileInputStream(fileImage);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
Is there a way to get the ImageView
image and convert it to InputStream
?
Thanks