Home All Groups Group Topic Archive Search About
Author
14 Apr 2006 3:07 PM
TdarTdar
Hi,
  I have a sql image field that is a picture. I added a imagefield and bound
it to the field name, and all i get is a red x..

Tdar

Author
16 Apr 2006 8:15 AM
Teemu Keiski
You need to have separate handler/page serving the image from the database.
HTTP response cannot return mixed content/type (like text and binary within
same response) so you need to create a second ednpoint request/response to
serve the image.

Related resources:
http://www.developerfusion.co.uk/show/3933/
http://www.codeproject.com/aspnet/ImageBinaryStream.asp
http://msdn.microsoft.com/msdnmag/issues/04/04/CuttingEdge/

(and you'll find a few more with Google)

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

Show quoteHide quote
"TdarTdar" <Tdar@noemail.nospam> wrote in message
news:2EAF814E-9FEF-4244-AD92-E190147C3035@microsoft.com...
> Hi,
>  I have a sql image field that is a picture. I added a imagefield and
> bound
> it to the field name, and all i get is a red x..
>
> Tdar

Bookmark and Share

Post Thread options