Search results for query: *

  1. M

    Resolved Zip File Download Corrupts Only AFter Deployed to Server

    we just found out that the APIGateway on Amazon''s end is automatically encoding to base64, so it doesn't matter what you do on the Lambda side you have to receive the stream on a client side app and decode, we just proved this out by creating a small application. I'm logging a ticket with...
  2. M

    Resolved Zip File Download Corrupts Only AFter Deployed to Server

    So by playing around i was able to replicate on my local machine a 64bit encode zip which looked like the bad zipfile same size and same issue when trying to open. I have made several attempts to convert to a 32bit encoded zip but im really stuck any help would be great here is my latest...
  3. M

    Resolved Zip File Download Corrupts Only AFter Deployed to Server

    Might need a little help... i tried this but the server throws a 500 [HttpPost("v1/GetReaJetXMLZips")] public IActionResult GetReaJetXMLZips([FromBody] IEnumerable<JsonRequestModel> JsonRequestModels) { try { string FileName =...
  4. M

    Resolved Zip File Download Corrupts Only AFter Deployed to Server

    Morning, I have a very interesting situation, when i run my code locally with the IIS express it works great the zip file is downloaded fine. After publishing to AWS Lambda the zip file downloads but is corrupt. I'm trying to understand if its the way in which the controller returns the...
  5. M

    Resolved Zip File Created In Memory is Empty, or i get Cannot access a closed Stream.

    lol, that's a mouthful and the short answer is pass, i dont know im a mechanical engineer with no computer science education so I'm sorry I don't understand, trust me I would if I could.
  6. M

    Resolved List Containing Multiple Instances of the Same Object

    Thanks for the Feed back, I just write prototypes, fur my proof of concepts and hand it off to my dev team with requirements. They do the design doc and real code. I just play, butI will endeavor to do what you said. Thanks Mad axe
  7. M

    Resolved List Containing Multiple Instances of the Same Object

    I found a fix, by serializing and deserializing my template, surely there is a better way private T DeepClone<T>(T obj) { using (var ms = new MemoryStream()) { var formatter = new BinaryFormatter(); formatter.Serialize(ms...
  8. M

    Resolved List Containing Multiple Instances of the Same Object

    I think this is my problem, I have XML templates stored in the database, I read these in and serialize them to create a template which is stored in my implementation as a private property. When i need a copy I call the Clone method. I suspect its maintaining a reference back to the private...
  9. M

    Resolved List Containing Multiple Instances of the Same Object

    I tried with and without the using statement, I'm coming from a vba background, and the rules seems to be a little different. I'm going to rewrite it step by step, I appreciate the help Madaxe
  10. M

    Resolved List Containing Multiple Instances of the Same Object

    Something Odd is happening, even though I created a new object to add to the list in the using statement, it seems to be self referencing, the second time it loops through its adding the same object even though i created a new one and the objects inside are compounding. So at the end i have 7...
  11. M

    Resolved Zip File Created In Memory is Empty, or i get Cannot access a closed Stream.

    Thank you I did not fully appreciate that the using disposes of the object, so that its out of scope for the calling method so now i have a zip of zips i just need to ensure that xmls are inside. thanks Madaxe private MemoryStream BuildRootZip() { MemoryStream...
  12. M

    Resolved Zip File Created In Memory is Empty, or i get Cannot access a closed Stream.

    Morning, yeah sorry I'm not a developer I'm learning and self taught. I looked to see where the stream is being closed and its at the closing tag for the using, so i tried moving the return above the tag but this did not work either private MemoryStream BuildRootZip() {...
  13. M

    Resolved Zip File Created In Memory is Empty, or i get Cannot access a closed Stream.

    I'm trying to build a zip file that contains other zip files, the internal zip files contain XML files serialized from data model objects. I need to keep them in specific groups hence the zip of zips. This is being done server side by microservices, and returned via a web service controller to...
Back
Top Bottom