
: Re: The mimetype file has an extra field of length n. The use of the extra field feature of the ZIP format is not permitted for the mimetype file I am using the C# library DotNetZip (Ionic.Zip
Ive also had some problems with compression of the mimetype file. What I ended up doing was adding the entry myself from a byte[].
using (ZipOutputStream zs = new ZipOutputStream(pathTemp + ".epub"))
{
var o = zs.PutNextEntry("mimetype");
o.CompressionLevel = CompressionLevel.None;
byte[] mimetype = System.Text.Encoding.ASCII.GetBytes("application/epub+zip");
zs.Write(mimetype, 0, mimetype.Length);
}
using (ZipFile zip = new ZipFile(pathTemp + ".epub"))
{
zip.RemoveSelectedEntries("*.*");
zip.AddDirectory(pathTemp + "content", "content");
zip.AddDirectory(pathTemp + "META-INF", "META-INF");
zip.Save();
}
This should fix it for you.
Free books android app tbrJar TBR JAR Read Free books online gutenberg
More posts by @James

: Table of Contents links in Kindle no longer work The links for Table of Contents in my kindle no longer workers. It doesn't take me to the location of the page anymore. Instead, whenever I

: Readers that support EPUB 3 page numbers We are adding page numbers to our epubs according to the spec defined here. We would like to test this functionality though, are there any readers that