Displaying Image using path from Sql Query

Discussion in 'C#' started by TonyOq, Sep 2, 2010.

  1. TonyOq

    TonyOq New Member

    Joined:
    Sep 2, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I'm creating a C# Application project (using Visual Studio 2008). I am using a DataGrid and retrieving values for an image whos path is located in a SQL database. So for example I get back: "ImageName" "/some/path/to/my/image.gif". I can get the values returned fine, however I do not know how I can convert that url string into an actual image.

    The project is a Windows Application project. From the research I have done in the last couple of days, I almost think I have to turn the image into binary? Anyway, I don't know how to proceed. If someone can post me an example (along with where to put it), it would be a huge help. I have searched a lot but everywhere seems to assume it's binary I'm pulling from the database and I'm not. I also have zero control over how the data comes to me, I just need ot be able to work with it after the fact.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice