'Java convert JFIF file to JPG file

Is there a way to convert a .JFIF file to a .jpeg file without using any online tools? I want to do this in java. The problem is that I receive files as a JFIF file. I want to create a base64 string from that, but using that string will not display any images.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source