1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Displaying Image using path from Sql Query

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

  1. TonyOq

    TonyOq New Member

    Sep 2, 2010
    Likes Received:
    Trophy Points:
    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