In my Java application I would like to download a JPEG, transfer it to a PNG and do something with the resulting bytes.
I am almost certain I remember a library to d
javax.imageio should be enough. Put your JPEG to BufferedImage, then save it with:
File file = new File("newimage.png"); ImageIO.write(myJpegImage, "png", file);