Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Databind to a database
posted

How can I bind the WebImageViewer to an image stored in a database (not a link to a file on the filesystem)?  Any help would be appreciated.  I set the datasourceid to the connection and the datamember to the field containing the image.  I try to run it and get an error:

 

 

Parents
No Data
Reply
  • 28464
    posted

    Hello Scotte,

    That would be a wonderful feature, however this is really very hard to implement. All WebImageViewer does is provide the means to show a galley of picture, which render as pure <img> Html tags. The nature of Html requires that the images used should be physically present as files on the Web-Server, so supporting binary/image files directly in database is not possible.

    Storing images directly in database and then showing them in browsers is a very tricky topic, but I believe this is a good starting point:

    http://www.stardeveloper.com/articles/display.html?article=2001040401&page=1 

Children