11-23-2009, 10:22 AM | #16 |
Junior Member
Posts: 4
Karma: 10
Join Date: Nov 2009
Device: None
|
The real .epub is 40 + MB, this is just a subset. But the mimetype file is the problem.
Thanks ! BTW..don't shoot me because of the layout...I'm just the coder Martin |
11-23-2009, 01:12 PM | #17 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
Advert | |
|
11-23-2009, 03:31 PM | #18 |
The Grand Mouse 高貴的老鼠
Posts: 71,491
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
That's not his problem. If I unzip and then re-zip his file, it passes epubcheck.
The problem is the zip format. If you look at his file with a hex editor, it should have application/epub+zip at bytes 0x26 to 0x3A, immediately following the mimetype filename. In his file the mimetype filename is in the right place, but the file contents doesn't immediately follow it. I've attached the working ePub. I don't know enough about the zip format to say exactly what's one wrong when zipping his files, but something has. |
11-23-2009, 04:43 PM | #19 |
Junior Member
Posts: 4
Karma: 10
Join Date: Nov 2009
Device: None
|
Thanks for your investigation. It's driving me nuts.
I'm gonna post a question in the ionic zip library group (the guys who build the .net zip dll) to get some answers... I still want to automate this task without using some thirdparty command line ziptools.. Regards !! Martin |
11-24-2009, 04:49 AM | #20 | |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
zip info: mimetype has 36 bytes of extra data zip info: META-INF/ has 36 bytes of extra data zip info: META-INF/container.xml has 36 bytes of extra data zip info: OPS/ has 36 bytes of extra data zip info: OPS/011252A.png has 36 bytes of extra data zip info: OPS/011252B.png has 36 bytes of extra data [...] though the final test result is OK. Ark says the mimetype file is stored with no compression, so that part is OK too. |
|
Advert | |
|
11-24-2009, 06:30 AM | #21 |
Junior Member
Posts: 4
Karma: 10
Join Date: Nov 2009
Device: None
|
Thank you all for pointing me into the right direction:
The problem is solved with the help of the programmer of the DotNet Zip Library. "By default, Zip entries created by DotNetZip will include extra data, for the timestamp on the file. This data will appear in the zip file immediately after the filename, and immediately before the file content. Normally this is tolerated by zip tools that read the files. In some cases it is not. To turn off the timestamp, set EmitTimesInWindowsFormatWhenSaving to false, on the ZipEntry. This would be (e.EmitTimesInWindowsFormatWhenSaving = false" That will eliminate the extra data between the filename and the file content. " It worked and the .epub is validated OK ... Thank you all very much for helping me solve the puzzle ! Martin |
12-02-2009, 10:09 AM | #22 |
Junior Member
Posts: 1
Karma: 10
Join Date: Dec 2009
Device: none
|
i have got some error container.xml missing in the meta-inf and also mimetype is miss
|
01-22-2010, 01:14 AM | #23 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Oct 2008
Device: Kindle, SONY, MOBI, PALM, ePUB
|
Solution of mimetype error in ePub.
First make a zip of mimetype file then add ur all files/folders in the zip. Or provide me your sample ePub in "hello_subhash@yahoo.com". I will fix the error then you can compare zipping properties and implement.
Quote:
|
|
11-16-2013, 07:16 AM | #24 |
Pain in the arse
Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
Excuse me for necromancy, I've found this article googling and it solved my problem
A more simple way to zip the epub is: Code:
zip -r -X file.epub mimetype * Code:
zip -X file.epub mimetype zip -r file.epub * -x "mimetype" Last edited by Lucas Malor; 11-16-2013 at 07:25 AM. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
attribute "scheme" from namespace error in epubcheck 1.0.5 | thunderune | ePub | 15 | 06-30-2011 10:57 AM |
epub date error fails epubcheck 1.05 | dkata | Calibre | 2 | 09-13-2010 04:21 AM |
epub et mimetype | merlinetmoi | E-Books | 4 | 09-10-2010 01:20 AM |
Web-based epubcheck upgraded to epubcheck 1.0.5 | kjk | ePub | 4 | 02-09-2010 09:53 PM |
"E-books" Menu: missing entry for epub book uploads ?!? | cklammer | Feedback | 0 | 12-06-2009 06:28 AM |