Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Mobile / July 2004

Tip: Looking for answers? Try searching our database.

Inserting an image from an SQL in ASP NET WebMobile control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nicolas - 21 Jul 2004 21:23 GMT
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
Nicolas - 21 Jul 2004 21:35 GMT
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
> How do I display an image into the image webmobile control when the image is
> stored in an SQL database as image type field
[quoted text clipped - 14 lines]
>
> Thanks for the help

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.