易截截图软件、单文件、免安装、纯绿色、仅160KB

asp MemoryStream

MemoryStream ms = new MemoryStream(data);
        Bitmap b = new Bitmap(ms);

怎么是错误啊~提示是Bitmap(ms);中ms参数的格式 不正确~
你看一下MemoryStream 和Bitmap 这2个是不是官方的那2个类?
是不是你引用了什么其他的命名空间

没有啊~我是想把bytes类型抓换成stream类型的,


引用
那楼主你的data是什么呢?
Bitmap 的构造函数中可以放入参数为Stream型的,而MemoryStream继承与Stream的,也就是说你写的是对的,那就要看你的data了,

Bitmap 在System.Drawing;下

你能把VS中报的错误贴出来看看吗?
你描述的错误可能不对


相关问答:

ASP判断的问题,郁闷了!判断不出来!

HTML code:

dim jf
set conn=server.createobject("adodb.connection")
connstr="Driver={Sql Server};Server="&Sqlip&";Database="&Sqldb&";Uid="& ......

[高分求助]帮忙转下代码(ASP(VBSCRIPT) TO C#)谢谢~!

function mistake(preString)
      Dim texts
      Dim seed
      Dim i,length
      prestring = trim(preString)
    ......

[技术散分]ASP调用VB编写的组件

在VB按MVC的构架写组件供ASP调用
BLL层


VB code:

Private Dal As New moonPotato_DAL
Public Sub inSertUser(Model As moonPotato_Model)
Dal.InSertCls (Model)
End Sub



......

十年前我用C语言写的程序,今天被我用ASP改写了

这个程序是读大一时学C语言我自己想出的,老师直夸我聪明,现在用ASP改写了,大家知道运行结果吗
<table width="486" border="1" cellpadding="0" cellspacing="1"& ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号