From here to eternity
Being a few words describing an ISV journey …
2007-02-02 : To \n or not to \n?
I had a few users complain that the downloads from Eternity Software were failing under XP. The problem seemed to be with Windows XP's compressed folders; the downloads wouldn't unzip. However unzipping using winrar, winzip, etc seemed ok.
Frustrating to say the least!
Through trial and error (and the help from a friend at Otaku Software), it was revealed that the file was one byte too long. The downloadable file up on the web site had its length correct. So the download was adding one extra byte? Weird, but true.
Turns out the header I was constructing for the download script had an additional "\n" and this was the extra byte. Removing the offender restored the file size to its rightful value when downloaded.
I am sure that there is supposed to be two \n's in the header but it might be that when constructing the header for the download, the fact that the header has the extra line about the file length, probably means the surplus \n isn't required.
Programmers hate reading documentation, but maybe I should read some of it next time :-)
Blog List
2008-08-22 : Something weird has happened to my sales
2008-08-06 : SimpleBugs Released
2008-01-28 : When Too Much Choice Is Bad
2007-12-22 : The Hard Disk Crash
2007-11-30 : What To Blog About
2007-10-27 : Facebook, Facebook and more bloody Facebook
2007-10-01 : What To Blog About
2007-07-04 : SRedirect and SBridge Released
2007-06-30 : War On Spam - Embedded
2007-05-15 : The War On Spam
2007-04-30 : TopDesk v1.5 Is Out
2007-04-08 : Spam, spam, spam, and more spam.
2007-02-02 : To \n or not to \n?
2007-01-03 : Why rolling your own code is fun
2006-12-31 : Where has the year gone?
2006-11-01 : Fsync Released
2006-09-27 : Serving files with Cherrypy and the browser cache?
2006-09-26 : SimpleQuality Hits Beta
2006-09-19 : Too busy to blog
2006-08-14 : What's in a name?
2006-08-13 : Webfaction and Snake Oil
2006-08-03 : PayPal is pay n'ful
2006-07-23 : Why the internet is what it is
2006-07-21 : Why automatic updates are a "bad" thing
2006-07-20 : From reality to fresh hope
2006-07-17 : ... freedom!
2006-07-10 : It's coming together
