Hi all,
I am sending a string formatted data of the image from an iPhone client code to a web service. I am trying to encode that in binary64 and then convert it to a byte array. I get this problem of Parameter not valid
at the following point in the code.
byte[] ImgInput = System.Text.Encoding.UTF8.GetBytes(ImgInputString);
string imgString = Convert.ToBase64String(ImgInput);
byte[] imgBYtes = Convert.FromBase64String(imgString);
System.IO.Stream ms =(Stream)
new System.IO.MemoryStream(ImgInput);
//ms.Write(ImgInput, 0, ImgInput.Length);
ImageConverter ic = new ImageConverter();
Image image = (Image)ic.ConvertFrom(imgBYtes);---ERROR here