[
  {
    "Id": "227199",
    "ThreadId": "66835",
    "Html": "<p>Hi all,</p>\r\n<p>please apologize me for my poor english, I use a translator. Sorry for that...</p>\r\n<p>OK, I would like to open a ZIP-File and read included two XML-Files. But it is not allowed to extract any files to my harddisk, so I must open the ZIP-File and read the needed files step by step into a MemoryStream.</p>\r\n<p>What is the best way to do this?</p>\r\n<p>Can I read the first XML-File into a MemoryStream and then open the file with XDocument.load(MemoryStream...)?<br>When the Archive is encrypted, how can I find out the entryption-mode (e.g. AES256 or other method)?<br>Can I change different entries in the XML-File/MemoryStream and save back the changes into ZIP-File without saving about the harddisk (I don't know the count of files)?</p>\r\n<p>I'm very happy when you can answer the above questions.</p>\r\n<p>Thanks a lot for your support.</p>\r\n<p>Regards,<br>Maximilian</p>",
    "PostedDate": "2009-08-24T12:56:00.083-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "227206",
    "ThreadId": "66835",
    "Html": "<p>use ZipEntry.OpenReader to open a stream with the extracted entry.&nbsp;&nbsp; This is often what you want, when extracting into memory.</p>\r\n<p>You can also extract into an existing stream (like a MemoryStream that you allocate), with the ZipEntry.Extract(Stream) method.&nbsp;</p>\r\n<p>These methods are documented in the helpfile, and there is example code showing you how to do it.</p>\r\n<p>When the ZipEntry is encrypted, the property ZipEntry.Encryption is set.&nbsp; Examine it before extracting to learn the encryption method.</p>\r\n<p>You can change the XML content, and then add it back into the zip archive.&nbsp; Use the UpdateEntry() method to do this.&nbsp;</p>\r\n<p>Spend some time looking at the documentation, it is very helpful.</p>\r\n<p>Eventually you will want to save the zip archive.&nbsp; You don't need to save to a filesystem file, but you will want to save it *somewhere*.</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-08-24T13:07:14.447-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "227672",
    "ThreadId": "66835",
    "Html": "<p>Hello Cheeso,</p>\r\n<p>thank you very much for your information. I would take a look into the documentation, I hope to find all needed information.<br>I'm also happy that I can read the entries of zip-file into a memorystream, this is the solution for the restriction that it is not allowed to save any files.</p>\r\n<p>Thanks a lot.</p>\r\n<p>Regards,<br>Maximilian</p>",
    "PostedDate": "2009-08-25T15:15:55.98-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]