How to convert Java Image into JPEG array of bytes?
- by unknownthreat
Is there a way to convert a Java Image, encode it into JPEG (but not saving it to a file), and store it as an array of bytes? (byte[]) I need the JPEG-encoded image as an array of bytes.