7
Answers

System.Drawing - Parameter is not valid

using code:
byte[] toBytes = Encoding.ASCII.GetBytes(objgroupconfereneResponse.groups[i].grpIcon.ToString());
if (toBytes != null)
{
MemoryStream ms = new MemoryStream(toBytes);
ms.Position = 0;
picboxserver.Image = Image.FromStream(ms);
}
 
please suggest me how to resolve it. 
 
Answers (7)