Skip to content

Add files to existing zip inside a blob storage [Stream is not seekable] #701

Answered by piksel
sergiojrdotnet asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, to update a zip file, you need to make changes to already written data, hence the seeking. The way the zip format works it's not possible to do what you are trying to do. Either you have to store the blob inside a buffer (MemoryStream), update it, and then write the new zipfile to the blob, or use another format (like tar).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sergiojrdotnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #700 on January 19, 2022 15:33.