I use Windows Azure to create a document management system, and so far everything went well. I was able to upload and upload files to the BLOB repository through the asp.net interface.
What I'm trying to do now is let users download a zip file and then extract the files from this .zip and save them as separate files. The problem is that I get "ZipException was unhandled" "EOF in the header", and I don't know why.
I use the ICSharpCode.SharpZipLib library, which I used for many other tasks, and it worked great.
Here is the basic code:
CloudBlob ZipFile = container.GetBlobReference(blobURI);
MemoryStream MemStream = new MemoryStream();
ZipFile.DownloadToStream(MemStream);
....
while ((theEntry = zipInput.GetNextEntry()) != null)
and it starts with a line when I get an error. I added a sleep duration of 10 seconds to make sure enough time has passed.
MemStream has a length if I debug it, but zipInput sometimes, but not always. It always fails.
Thanks for any help.
Dave
david source
share