{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "Hi, \nI am creating a big zip file and having trouble saving that zip file over to the cloud when send using Stream.\nFor example, I read 35 something PDFs from a single directory into stream and then add each stream to ZipEntry. Then i use MaxOutputSegmentSize set to 2 MB. I get 2 segments of zip archive. \nI want to then try to save these on cloud. I cant send the whole stream over the network as it throws error. \n\nHere is my sample Code.\n\n using (ZipFile zip = new ZipFile(fileName))\n            {\n                try\n                {\n                    string[] files = Directory.GetFiles(@\"C:\\\\Export\");\n                    foreach (var file in files)\n                    {                        \n                        byte[] data = File.ReadAllBytes(file);\n                        MemoryStream stream = new MemoryStream(data);\n                        var entry = zip.AddEntry(file, stream); \n                    }\n                    var zipStream = new MemoryStream();\n                    zip.MaxOutputSegmentSize = 2 * 1024 * 1024;\n                    zip.Save(zipStream);\n                    zipStream.Position = 0;\n                 }\n                catch(Exception e)\n                {\n                    string exceptionthrown = e.ToString();\n                }  \n             }\n\nI want to know if reading this stream is possible in a way so i could send part of it over the network? if not what is the best idea to save a big zip file on clound drive. I dont want to save the zip file on my local server.\n\nPlease advice.\n\nThanks",
    "LastUpdatedDate": "2014-10-21T15:27:23.523-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Unassigned",
      "Severity": 0,
      "Id": 0
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2014-10-21T15:27:23.523-07:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "How to create multipart Zip File and transfer it over http to store on cloud drive",
    "Type": {
      "Name": "Unassigned",
      "Id": 5
    },
    "VoteCount": 1,
    "Id": 17078
  },
  "FileAttachments": [],
  "Comments": []
}