I've been asked to write something to pull jpg/jfif files out of a binary file. I've had some limited success with my hex editor and I want to try it in perl. From my reading the picture stream starts withs 0xFFD8 and ends with 0xFFD9. The idea is that if I can pull everything out from between these markers we should have a valid jpeg image. I also suspect there are multiple jpegs within the binary file and they also each contain a thumbnail.
So my first question is can anyone point me in the right direction for extracting a block out of a binary file between 2 markers ? Once I get this working I think it should be quite straight forward.
Thanks in advance
wert
In reply to extract jpg from binary file by wertert
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |