|
From: | N.Karakotas |
Subject: | Re: [lwip-users] makefsdata strange error with .png files |
Date: | Tue, 3 Jan 2012 19:20:07 +0200 |
It worked by adding the following line:
binmode FILE;
Thanks
From: N.Karakotas
Sent: Monday, January 02, 2012 6:54 PM
To: address@hidden
Subject: [lwip-users] makefsdata strange error with .png
files Hi,
Im using the makefsdata.pl perl script to create the html data. I was
having a strange problem with .png files not showing up on the browser. After
tracing the problem I noticed that the array data created by the perl script was
missing 1 byte of data at the begging of the png header. For example here are
the bytes of the images:
Correct:
89 50 4E 47 0D 0A 1A 0A 00 00 00
Wrong:
89 50 4E 47 0A 1A 0A 00 00 00
If you can see byte 5 doesnt contain the 0x0d! When I inserted this to the
table the image showed up correctly. I cant se why the perl script is failing on
this line:
for($j = 0; $j < length($file); $j++) {
printf(OUTPUT "%#02x, ", unpack("C", substr($file, $j,
1)));
}
Im using windows. Any thoughts? Its strange that one has had this problem
before.
Regards,
Nick
_______________________________________________ lwip-users mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/lwip-users |
[Prev in Thread] | Current Thread | [Next in Thread] |