| View previous topic :: View next topic |
| Author |
Message |
Newbie
Joined: 18 Aug 2007 Posts: 3
|
Posted: Thu Jan 31, 2008 5:09 am Post subject: Create a OCF with a java programm, but it doesn´t work |
|
|
Hi,
I´ve implement a little java program which transform a odt-file to xhtml. This program also create a zip-file with epub as ending, but Adobe Digital doesn´t open this file. I checked the file with the epubchecker.jar and got the report that the container.xml isn´t readable or the mimetype isn´t in the archive or wasn´t the first.
The programm doesn´t compress the files, it only stores each file. If I zip all files manually by using Winrar everything is fine.
Maybe anyone has a good idea, what is wrong.
Bye Newbie |
|
| Back to top |
|
 |
Newbie
Joined: 18 Aug 2007 Posts: 3
|
Posted: Sat Feb 02, 2008 4:39 am Post subject: Found the problem |
|
|
Hi,
I solved the problem. The mistake was the zipentries in the archives. My program used the wrong syntax. The zipentres were described in this way, e.g. \META-INF\container.xml but Adobe requires this /META-INF/container.xml.
I found my mistake because I compared the manually created file with the automatic ones. Maybe my mistake it is useful for anyone else.
So bye and a nice weekend
Newbie |
|
| Back to top |
|
 |
|