Here are my recommendations:
1.For each image the image data should be sent as bytes array (
byte[] imageData;
).
2. Because an image could be a large file it is commanded to transfer only one image at a time and not a list of images.
3. If you really want to transfer multiple images in one single call your method signature from your WCF service, you class name should be
MultipleImageClass
, then the images data should be an
array of objects and not a list
, this images data should be returned as out parameter, and the method should return an error code like below:
public int GetMultipleImages(out MultipleImageClass[] myImages)
{
return 0;
}
4.You should have a look also on my next answer related with WCF service configuration issue:
How to transfer same class obj that was received from WCF service to Application C#[
^]