[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] makefsdata strange error with .png files
From: |
Mason |
Subject: |
Re: [lwip-users] makefsdata strange error with .png files |
Date: |
Wed, 04 Jan 2012 17:05:22 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20111221 Firefox/9.0.1 SeaMonkey/2.6.1 |
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.
- Re: [lwip-users] makefsdata strange error with .png files, (continued)
- Re: [lwip-users] makefsdata strange error with .png files, FreeRTOS Info, 2012/01/02
- [lwip-users] makefsdata strange error with .png files, N.Karakotas, 2012/01/03
- Re: [lwip-users] makefsdata strange error with .png files, N.Karakotas, 2012/01/03
- Re: [lwip-users] makefsdata strange error with .png files, Gisle Vanem, 2012/01/03
- Re: [lwip-users] makefsdata strange error with .png files, N.Karakotas, 2012/01/03
- Re: [lwip-users] makefsdata strange error with .png files, FreeRTOS Info, 2012/01/03
- Re: [lwip-users] makefsdata strange error with .png files, N.Karakotas, 2012/01/04
- Re: [lwip-users] makefsdata strange error with .png files, Richard Barry, 2012/01/04
- Re: [lwip-users] makefsdata strange error with .png files, FreeRTOS Info, 2012/01/04
- Re: [lwip-users] makefsdata strange error with .png files, N.Karakotas, 2012/01/04
Re: [lwip-users] makefsdata strange error with .png files,
Mason <=