IDPF Standards Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Create a OCF with a java programm, but it doesn´t work

 
Post new topic   Reply to topic    IDPF Standards Forum Index -> Sample OPS 2.0 Files, Implementations & Tools
View previous topic :: View next topic  
Author Message
Newbie



Joined: 18 Aug 2007
Posts: 3

PostPosted: Thu Jan 31, 2008 5:09 am    Post subject: Create a OCF with a java programm, but it doesn´t work Reply with quote

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
View user's profile Send private message
Newbie



Joined: 18 Aug 2007
Posts: 3

PostPosted: Sat Feb 02, 2008 4:39 am    Post subject: Found the problem Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IDPF Standards Forum Index -> Sample OPS 2.0 Files, Implementations & Tools All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Content © International Digital Publishing Forum