I need to convert byte [] of an image to a format that can be saved in a xml. I tried to convert to a string but not worked. The xml file after 5 images saved was about the size of 50mb! I need to convert to a simpler format for this xml file can not be too heavy.
相关问题
- Views base64 encoded blob in HTML with PHP
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- How to get the background from multiple images by
- Why am I getting UnauthorizedAccessException on th
Consider using a Base64 format - you lose some efficiency but the data will be encapsulated. For example
You can convert to Base64 using
Convert.ToBase64
Try compressing the byte array and hope the size will be smaller :). For example check :DeflateStream and hope the size will be reduced :)