public void ShowVCImage(string qq) { test = new Form1(); test.button1.Image = cw.GetLoginVCImage(qq); System.Threading.ThreadPool.QueueUserWorkItem(delegate(object state) { Application.Run(test); }); }
public void getVCode2(string LoginQQ) { getSession(); System.IO.MemoryStream bstream = new System.IO.MemoryStream(); cw.GetLoginVCImage(LoginQQ).Save(bstream, System.Drawing.Imaging.ImageFormat.Jpeg); byte[] byteReturn = bstream.ToArray(); bstream.Close(); this.Context.Response.OutputStream.Write(byteReturn, 0, byteReturn.Length); }