N.Karakotas wrote: > I'm 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 beginning > 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
0x0D = ASCII carriage return (CR). 0x0A is ASCII line feed (LF). http://en.wikipedia.org/wiki/Carriage_return http://en.wikipedia.org/wiki/Line_feed On Unix, '\n' is LF. On Windows, '\n' is CRLF. Thus, your PNG header was unixified :-) -- Regards. _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
