Given a class like this:
public class UserDto
{
public int Id { get;set; }
public string Name { get; set; }
public Bitmap Picture {get; set; }
}
I can make a request using the XmlServiceClient and use an ImageConverter to convert the image to a byte array that can be returned to a (partial) view as File(imgArray, "image/jpg"). I haven't been able to do the same with the JsonServiceClient. It appears to serialize differently, Does the Json serializer use a different enconding?