Silva
Silva

Reputation: 45

image base64, and optimase output

I wanna send image through UDP, so I'm looking for the best compressed algorithm to do that in C#! for my current way is to converting image to text file by using base64, then I optimize the output of base64 by compressing the file with gzip.

Samples:

Image1 => 75.6 KB

base64 Image1 => 100 KB

gzip Image1 => 74.9 KB


Image2 => 384 KB

base64 Image2 => 512 KB

gzip Image2 => 386 KB

Upvotes: 0

Views: 122

Answers (1)

albattran
albattran

Reputation: 1907

Try compressing the image first then do base64. Depending on the image, GZip can be really efficient on the images themselves. You might want to try to compress the Base64 after

Upvotes: 1

Related Questions