I heard that it is a sqlite table just zipped up, but I cannot find anyway to open it up and access it contents. The file I’m needing to crack open is a book, and it’s filename is book.zbook…
If you have any ideas, let me know please!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve never worked with zbook files before, but I do have a fair bit of experience with “just compressed” file formats and SQLite and you’re in luck. They could’ve been using the commercial SQLite Compressed and Encrypted Read-Only Database (CEROD) extension, but they’re not.
.zbookis an SQLite3 database packed by raw zlib compression. (Gzip without a header, basically)Here’s some minimal code to unpack it in Python:
I’m actually a bit surprised at that. “Just zipped up” usually means the base format of the file is XML or HTML or something custom like bytecode or binary blobs since SQLite isn’t really designed to be loaded from an archive that way.