flex将图片转成ByteArray后传给web服务,web服务将字节流保存图片
public string GetImageFromByte(byte[] bytearray, double xmin, double xmax, double ymin, double ymax, string countryName,int width,int height)
{
MemoryStream mstream = new MemoryStream(bytearray);
Image image = Image.FromStream(mstream);
image.Save(@"d:\test.jpg");
return "Hello World";
}
执行到Image image = Image.FromStream(mstream);后报错,参数异常
------解决方案--------------------
不是这么写的,百度下把!一大把!