Rank: Newbie Groups: Member
Joined: 3/31/2008 Posts: 4
|
Hi,
I try to load images from database to eo:ImageZoom control. The images dataType is image. (sql server). I have lots of images stored in the database, Could you provide same sample code to use eo:ImageZoom control and datagrid control loading the images from database?
Thanks a lot for your help! Li Liu 713-627-4327
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The ImageZoom control works with an image Url. It does not care about how that image Url is rendered, that part would be up to you. You can store it inside a DB, store in a file, or even generate on the fly. None has anything to do with the ImageZoom control. Regardless where you have the image, unless the image is in a static file, you will need to write the code to serve the image. So if you have the code that servers the image in any page through a Url (for example, to display the image in a page), you would simply pass that Url to the ImageZoom control. ImageZoom doesn't know or care that your image is in the DB at all.
Thanks!
|