First I upload a .bmp image of size 7KB to a server and then when required I send a request to the server to get that image and the image would be sent in base64 encoded format. If I save that file to a .bmp format the saved image would look exactly like the one I uploaded but it's size would be around 4KB.
I think that while uploading the image is being compressed. If it is, how to I uncompress it.
I'm saving the image in with the following code:
MemoryStream stream = new MemoryStream(Convert.FromBase64String(strImageInBase64Format));
Bitmap bmp = new Bitmap(stream);
bmp.Save("some.bmp");