Ola.
Tem como transformar uma imagem em um array de bytes ?
Por exemplo:
File file = new File("c:/imagem.jpg");
FileInputStream fis = new FileInputStream(file);
Tem como transformar isso em um array de bytes ?
Ola.
Tem como transformar uma imagem em um array de bytes ?
Por exemplo:
File file = new File("c:/imagem.jpg");
FileInputStream fis = new FileInputStream(file);
Tem como transformar isso em um array de bytes ?
Continuando seu código:
byte[] bytes = new byte [(int) file.length()];
fis.read (bytes);