display image from database in PocketPC ASP Web Mobile

Discussion in 'ASP .Net' started by Nicolas, Jul 21, 2004.

  1. Nicolas

    Nicolas Guest

    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, Jul 21, 2004
    #1
    1. Advertisements

  2. Nicolas

    Nicolas Guest

    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" <> wrote in message
    news:...
    > 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, Jul 21, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U1M=?=
    Replies:
    3
    Views:
    4,034
    Juan T. Llibre
    May 15, 2005
  2. Replies:
    1
    Views:
    1,390
    Metalore
    Oct 18, 2006
  3. chen selina
    Replies:
    0
    Views:
    1,618
    chen selina
    Jul 13, 2010
  4. C# newbie

    Mobile/PocketPC/PDA programming

    C# newbie, Feb 7, 2004, in forum: ASP .Net Mobile
    Replies:
    2
    Views:
    254
    C# newbie
    Feb 19, 2004
  5. Sonu

    Using Web Browser control in PocketPC

    Sonu, Jan 15, 2005, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    162
  6. Mat Smart
    Replies:
    0
    Views:
    312
    Mat Smart
    Feb 1, 2005
  7. Patino
    Replies:
    0
    Views:
    795
    Patino
    Feb 17, 2007
  8. Replies:
    1
    Views:
    345
Loading...