首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

图片无法显示.解决方案

2012-01-07 
图片无法显示.pdlpdp.GetModel(_pid)byte[]picStream(byte[])pdl.Pictureif(_claA ){Response.Con

图片无法显示.
pdl   =   pdp.GetModel(_pid);
                byte[]   picStream   =   (byte[])pdl.Picture;
             
                if   (_cla   ==   "A ")
                {
                        Response.ContentType   =   "image/pjpeg ";
                        Response.BinaryWrite(picStream);
                }

竟然无法显示图片,什么原因呢?   是以二进制存到数据库里的,为何从1.1转到2.0就出错了,   请各位帮帮忙,这倒底是什么原因呢.

看了很多网上的,都是这样写,但我的就是无法显示.

[解决办法]
Response.ContentType = "image/pjpeg ";
Response.ContentType = "image/p.jpeg ";

热点排行