Stephen Toney has asked for the wisdom of the Perl Monks concerning the following question:
By using "tell" I can see where the file pointer is. Normally tell returns something like this: 270, 271, 272, 273. However, in the problem file, it returns 270, 782, 4367, 4368.
The problem occurs on two different servers. I thought the file was corrupted, but it looks normal using a hex editor, and it opens correction in MS Photo Ed, which also can determine the image size (in other words, Photo Ed can read the bytes I can't seem to read).
Why would getc skip like this? I've Googled and searched this site to no avail.
Many thanks in advance for any wisdom!
Stephen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: getc skips ahead
by borisz (Canon) on Aug 15, 2004 at 12:37 UTC | |
by Stephen Toney (Sexton) on Aug 15, 2004 at 13:59 UTC | |
by PodMaster (Abbot) on Aug 15, 2004 at 14:14 UTC | |
by hv (Prior) on Aug 15, 2004 at 19:43 UTC | |
by ysth (Canon) on Aug 15, 2004 at 19:57 UTC | |
by hv (Prior) on Aug 16, 2004 at 01:19 UTC | |
|
Re: getc skips ahead
by gaal (Parson) on Aug 15, 2004 at 12:48 UTC | |
by Stephen Toney (Sexton) on Aug 15, 2004 at 14:00 UTC | |
|
Re: getc skips ahead
by derby (Abbot) on Aug 15, 2004 at 14:05 UTC | |
|
Re: getc skips ahead
by Zaxo (Archbishop) on Aug 15, 2004 at 22:26 UTC |