|
|
#16 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2009
Device: None
|
Thanks ! BTW..don't shoot me because of the layout...I'm just the coder ![]() Martin |
|
|
|
|
|
#17 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,135
Karma: 2460081
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
|
|
|
|
|
Enthusiast
|
|
|
|
#18 |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,224
Karma: 73592972
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
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.
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
|
#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 |
|
|
|
|
|
#20 | |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,135
Karma: 2460081
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
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. |
|
|
|
|
|
|
#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 |
|
|
|
|
|
#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
|
|
|
|
|
|
#23 | |
|
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Oct 2008
Device: Kindle, SONY, MOBI, PALM, 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:
|
|
|
|
|
![]() |
| 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 |