binFormatter.Serialize(memStream, img);byte[] bytes =memStream.GetBuffer();stringbase64 =Convert.ToBase64String(bytes);returnbase64; }///<summary>///将Base64字符串转换为图片///</summary>///<param name="sender"></param>///<param name="e"></param>privateImage ToImage(stringbase64stri...