|
private void button1_Click(object sender, EventArgs e)
{
HttpHelper per = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "http://captcha.qq.com/getimage?aid=2001601&r=0.6586927378318996&uin=2304254329",
ResultType=ResultType.Byte,
};
per.GetHtml(item);
pictureBox1.Image = ToImage(item.ResultByte);
}
private Image ToImage(byte[] Bytes)
{
using (MemoryStream ms = new MemoryStream(Bytes))
{
Image outputImg = Image.FromStream(ms);
return outputImg;
}
}
总是未处理 System.Runtime.InteropServices.ExternalException
Message=GDI+ 中发生一般性错误。
|
|