首页 新闻 会员 周边

股票WebServices byte[] 图片

0
悬赏园豆:50 [已解决问题] 解决于 2012-01-10 14:11

股票WebServices 返回byte[]
如果何转成图片,如果控制width,height,位置?

问题补充:

我用下面的代码是画出来了,但不知道怎么控制图片的位置及width,height

难道只能像做验证码一样<img src="img.aspx" width="" height="" /> ??

cn.com.webxml.www.ChinaStockWebService stock = new cn.com.webxml.www.ChinaStockWebService();
string code = "sh000001";
byte[] imgByte = stock.getStockImageByteByCode(code);

Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);

Response.ClearContent();
Response.ContentType = "image/gif";
Response.BinaryWrite(imgByte);
Response.End();

卤水兄的主页 卤水兄 | 初学一级 | 园豆:48
提问于:2011-05-19 19:00
< >
分享
最佳答案
0

在Reponse里画。

收获园豆:50
Launcher | 高人七级 |园豆:45045 | 2011-05-20 09:45
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册