i have a web-service that will be returning a collection of System.Drawing.Image objects. My question is that can I directly send back a System.Drawing.Image instance from a web-service (given that this class implements ISerializable interface) or will I have to apply some type of encoding to it?
i have a web-service that will be returning a collection of System.Drawing.Image objects. My
Share
You will have to encode it. The response type of web services can be non-text, but typically consists of XML or JSON with a text payload.
You can encode your image as Base64, this can turn any binary into text. See also http://www.dailycoding.com/Posts/convert_image_to_base64_string_and_base64_string_to_image.aspx.