Inserting an image from an SQL in ASP NET WebMobile control
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.aspnet.mobile.

Post a new message to this list...

Nicolas
How do I display an image into the image webmobile control when the image is
stored in an SQL database as image type field

I got a file (page1.aspx) with the control (img_logo2) and this call
Me.img_logo2.ImageUrl = "StreamImage.aspx?ItemID=" & dbTable.Rows(0)("ID")

Then I got this other file (page2.aspx) which return this

iItem.SelectOne(Request.QueryString("ID"))

Response.ContentType = "image/gif"

Response.BinaryWrite(iItem.Photo1)

I know that it get the information correctly but the image got the red cross
instead of the image

Thanks for the help

Reply to this message...
 
    
Nicolas
I need to sleep a bit I was passing the wrong querystring ItemID where it
should be ID
Anyway now it is working fine
Sorry
"Nicolas" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
> How do I display an image into the image webmobile control when the image
is
[Original message clipped]

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com