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 do this exists, I cannot remember its name.
ImageIO can be used to load JPEG files and save PNG files (also into a ByteArrayOutputStream
if you don't want to write to a file).