Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Bookshare zip files don't uncompress #100

Open
ivanlabsii opened this issue Jul 25, 2017 · 0 comments
Open

Bookshare zip files don't uncompress #100

ivanlabsii opened this issue Jul 25, 2017 · 0 comments

Comments

@ivanlabsii
Copy link

ivanlabsii commented Jul 25, 2017

Bookshare is a service that distribute books in .zip files (DAISY format). Those files cause the following exception with method Ionic.Zip.ZipFile:

Ionic.Zip.ZipException: Could not read {local file path} as a zip file ---> Ionic.Zip.ZipException: Cannot read that as a ZipFile ---> Ionic.Zip.BadReadException:   Bad signature (0x20202020) at position  0x00000000
  at Ionic.Zip.ZipEntry.ReadHeader (Ionic.Zip.ZipEntry ze, System.Text.Encoding defaultEncoding) [0x00072] in <9599deb287a043798b91e504b52d6031>:0 
  at Ionic.Zip.ZipEntry.ReadEntry (Ionic.Zip.ZipContainer zc, System.Boolean first) [0x00044] in <9599deb287a043798b91e504b52d6031>:0 
  at Ionic.Zip.ZipFile.ReadIntoInstance_Orig (Ionic.Zip.ZipFile zf) [0x000b6] in <9599deb287a043798b91e504b52d6031>:0 
  at Ionic.Zip.ZipFile.ReadIntoInstance (Ionic.Zip.ZipFile zf) [0x00144] in <9599deb287a043798b91e504b52d6031>:0 
   --- End of inner exception stack trace ---
  at Ionic.Zip.ZipFile.ReadIntoInstance (Ionic.Zip.ZipFile zf) [0x0017c] in <9599deb287a043798b91e504b52d6031>:0 
  at Ionic.Zip.ZipFile._InitInstance (System.String zipFileName, System.IO.TextWriter statusMessageWriter) [0x0006c] in <9599deb287a043798b91e504b52d6031>:0 
  at Ionic.Zip.ZipFile..ctor (System.String fileName) [0x0005a] in <9599deb287a043798b91e504b52d6031>

I can send you a sample for testing on email (they don't make the test files available for the general public), or you can get it by registering to: http://developer.bookshare.org, then find test credentials and available books for test here (after you sign in): http://developer.bookshare.org/docs/read/Bookshare_Test_Data_for_Partners, and then log in to Bookshare and download the book (this link will lead you to one that is available for download for tests: https://www.bookshare.org/search?keyword=Bookshare+Demo%3A+The+Rocket+Boys+of+NIH).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant