Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2009, 08:13 PM   #1
Barnsy
Member
Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.
 
Posts: 3
Karma: 20000
Join Date: Jul 2009
Location: Canada
Device: none
ePUB and deflate/gzip

Hi All,

I thought I'd just share with you something I encountered recently when adding ePUB files for download on my website (Promotional link removed - MODERATOR]. Maybe it might help someone in the future.

My site is running ASP.NET and is using .NET to deflate/gzip content. This included downloaded files (PDF, ePUB and Mobi). To my surprise, it seems that deflate was dropping the last 4 bytes on the ePUB files. I didn't bother open the ePUB files with a hex editor to see what the last 4 bytes were but in notepad they looked like blanks (whitespace). When trying to load the ePUB files into calibre I was told that they weren't valid zip files. Funny enough, if I renamed the files .zip, winzip would extract them just fine. Oh well.

Anyways, long story short, I stopped using deflate/gzip for my download files and the problem is solved.

Last edited by Dr. Drib; 11-10-2011 at 04:03 PM.
Barnsy is offline   Reply With Quote
Old 07-13-2009, 08:42 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,999
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There isn't much point in using deflate on EPUb since EPUB is zipped anyway.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-13-2009, 09:56 PM   #3
Barnsy
Member
Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.Barnsy can self-interpret dreams as they happen.
 
Posts: 3
Karma: 20000
Join Date: Jul 2009
Location: Canada
Device: none
Good to know it won't affect my bandwidth too badly.

Thanks, by-the-way for calibre - it's Great! I will be making a donation once I get a little closer to being in the black
Barnsy is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Content server, IIS proxy, and gzip compression abrinton Calibre 9 04-08-2011 01:26 PM
epub, ePub, EPUB, warum blos ePub? flowoeB Lounge 5 11-27-2009 09:37 AM


All times are GMT -4. The time now is 06:46 PM.


MobileRead.com is a privately owned, operated and funded community.