bell notificationshomepageloginedit profileclubsdmBox

10% popularity   0 Reactions

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


Load Full (0)

Login to follow story

More posts by @James

0 Comments

Sorted by latest first Latest Oldest Best

 

Back to top