PDA

View Full Version : Display images stored in DB


aspq
05-08-2004, 12:59 PM
Hi,
Is there any way of displaying images stored in the database by using repeater cotrol?
using:
<%# DataBinder.Eval(Container.DataItem, "logo_image") %>
All I get is:
System Byte[]

I can display images using:
Response.ContentType = myDataReader.Item("logo_Itype")
Response.BinaryWrite(myDataReader.Item("logo_image"))
but then the page doesn't produce any result other than image!
Thanks

bkagan98
05-10-2004, 08:03 AM
Please check this article: http://www.123aspx.com/redir.aspx?res=28950
It is written in VB.NET but you will get an idea.

Boris