将byte []转换为.aspx页中的图像 [英] converting byte[] to image in an .aspx page
本文介绍了将byte []转换为.aspx页中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Web服务从数据库检索一条记录.在此
记录一个图像字段
当我通过Web服务将此记录发送给客户时,这张照片是
转换为字节[].
我想在我的asp.net页面中将此byte []更改为以前的图像格式
在客户端.
我无法更改.
我曾在google甚至代码项目中尝试过,但无法纠正我的问题.
请帮助我..
Hi,
I am using web service to retrieve one record from database. here in this
record there is one image field
when i send this record to client through web services , this photo is
converted as byte[].
I want to change this byte[] to previous image format in my asp.net page
at client side.
I am unable to change.
I tried in google and even in code project, I couldn''t rectify my problem.
please help me..
推荐答案
我在google中尝试过,甚至在代码项目中也无法解决问题."
现在很奇怪.
我尝试了一个快速的Google,使用从您的问题主题粘贴的"byte []映像",得到了超过20,000,000个答复,其整个首页都包含执行此操作的代码!
http://www.google.co. uk/search?sourceid = chrome& ie = UTF-8& q = byte [] + to + image [
"I tried in google and even in code project, I couldn''t rectify my problem."
Now that''s odd.
I tried a quick google, using "byte[] to image" pasted from your question subject, and got over 20,000,000 responses, the entire top page of which was full of code to do just that!
http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=byte[]+to+image[^]
Is there a problem with your Google-foo, or does the code to do it not solve your problem? If not, why not?
这篇关于将byte []转换为.aspx页中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文