I have a wcf service that is used by android/ios and a websetie(admin panel),
Users can upload and retrieve images.
For now, I am using base64 encoding for uploading and retrieving. For example, user uploads images with base64 encoding ( i am converting it behind) and wcf converts base64 as an image and storages as an image file to a folder. And when user retrieves an image, wcf reads the image file and converts it as an base64 and send it.
For example, base64 string length of a small image thats file size is 17kb, is 22432. I think its a huge string. If i sends or retrieves bigger file, will be much more than it.
So I think that that way is not so efficient. First of all I thought using string compressing but after i thought i can send it with another way.. like byte array?
I am not sure which way is more effective, what is the best way for that?
I hope, the question is enough clear.