|
ByteArrayOutputStream boas = new
ByteArrayOutputStream();
byte b[] = new byte[1024]; while(true) { int bytes = in.read(b); //"in" is InputStream if(bytes==-1) { break; } boas.write(b, 0, bytes); } b = boas.toByteArray();
|
- [JAVA2D] how to convert Image to byte array? wapcn
- Mohammed Moizuddin
