Save file from a byte[] in C# NET 3.5

后端 未结 5 1715
长发绾君心
长发绾君心 2021-02-04 04:39

My TCP Client receives a image within a packet.The image is compressed with zlib.The task is to decompress the image and put it on the form.

I\'m planning to save the co

5条回答
  •  遇见更好的自我
    2021-02-04 05:18

    Stick the byte array you received into a MemoryStream and compress/decompress it on the fly without using temporary files.

提交回复
热议问题