title: how to convert image to byte array in java?
body: <p>I want to convert an image to byte array and vice versa. Here, the user will enter the name of the image (<code>.jpg</code>) and program will <strong>read it from the file</strong> and will convert it to a byte array.</p>