wertert has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: extract jpg from binary file
by adrianxw (Acolyte) on Oct 27, 2006 at 13:52 UTC | |
by syphilis (Archbishop) on Oct 27, 2006 at 15:35 UTC | |
|
Re: extract jpg from binary file
by Anonymous Monk on Oct 27, 2006 at 13:54 UTC | |
|
Re: extract jpg from binary file
by brian_d_foy (Abbot) on Oct 27, 2006 at 21:04 UTC |