I want to extract the jpg image from an Hex file. The hex file comes from a serial camera that outputs a hex stream in the serial port. I need to reconstruct the image.
The output of the camera is attached in the text file.
the code I'm using reads the hex values and convert them to ASCII and save the file as a .jpg.
When I try to open the "picture.jp g" with Photo Editor it reads the start FFD8 correctly...