Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - Reading a file #24

Closed
wants to merge 7 commits into from
Closed

WIP - Reading a file #24

wants to merge 7 commits into from

Conversation

jimmywarting
Copy link
Contributor

@jimmywarting jimmywarting commented Jul 10, 2019

Sweet, I manage to read the "End of central directory record" and parse it.
Now i know some info about each entry.

Next step is to actually read it.
since our generated zip is uncompressed i did a simple zip.slice(start, end) on the generated blob to read the content of the file for now.

i know it's not airbnb style, but i will change it later.

Still lots of more stuff to be done here.
I mostly did it so i can get a better understanding of the underlying protocol so i can learn more how zip works, want to eventually get zip64 format support (#8)

#9

read.js Outdated
array: dataArray,
view: new DataView(dataBuffer)
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking maybe (hopefully) that we might not need this bloated helper fn

@jimmywarting
Copy link
Contributor Author

reading our own generated zip file, easy
reading others - hard

jimmywarting and others added 2 commits July 11, 2019 12:40
(meaning it was deflated)
we only copy over files - we don't have any deflation
Mistakenly put the compression method to 8
@jimmywarting
Copy link
Contributor Author

will make a new PR later

@jimmywarting jimmywarting deleted the reading branch July 12, 2019 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants