标题:从数据库读取图片为什么只能显示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



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-83407-1-1.html




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

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