dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Web Development
Expertise: Beginner
Jun 13, 2000

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


iHTML

Question:
How can I retrieve the images that are stored in the SQL Server Database Table by using iHTML?

Answer:

I, as well as many others, generally discourage storing images in a database as BLOBs (Binary Large Objects). Lots of great campfire horror stories have come from such practices.

It's usually less painful to avoid storing the images in the database and instead, use the file system. You would then store pointers to those images in the database. However, it sounds as if the deed has already been done, and the images are in the database.

Unless you permanently remove the image BLOBs from the database, you are probably going to have to extract the image BLOBs to files at run-time. Then you would write the path to the newly extracted file to the HTML page.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date