Exemple #1
0
 public static byte[] GetMessage(ThumbImageProductInfo thumbImageInfo)
 {
     byte[] msgOut;
     //using (var stream = new MemoryStream())
     //{
     //    Serializer.Serialize(stream, );
     //    msgOut = stream.ToArray();
     //}
     msgOut = UTF8Encoding.UTF8.GetBytes(ConvertToJson(thumbImageInfo));
     return(msgOut);
 }
Exemple #2
0
 public static string ConvertToJson(ThumbImageProductInfo thumbImage)
 {
     return(JsonConvert.SerializeObject(thumbImage));
 }