| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 509 人关注过本帖
标题:从数据库读取图片为什么只能显示System.Byte[]??
只看楼主 加入收藏
kb3721
Rank: 1
等 级:新手上路
帖 子:30
专家分:0
注 册:2006-7-16
收藏
 问题点数:0 回复次数:0 
从数据库读取图片为什么只能显示System.Byte[]??


Stream ImageStream;
intImageSize = personImage.PostedFile.ContentLength; // 文件大小
strImageType = personImage.PostedFile.ContentType; // 文件类型
ImageStream = personImage.PostedFile.InputStream;
byte[] ImageContent = new byte[intImageSize];
int intStatus = ImageStream.Read(ImageContent, 0, intImageSize);
用的是这个代码!
从数据库读取图片为什么只能显示System.Byte[]??
2006-08-11 13:31
快速回复:从数据库读取图片为什么只能显示System.Byte[]??
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.039884 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved