Solved

Retrieve Image (jpeg) Stored In SQL Server

Posted on 2014-01-31
3
346 Views
Last Modified: 2014-02-06
Hello

I am using TSQL to dynamically construct an html email for our customers. I need to retrieve and insert a signature (stored jpeg image in sql server table) into a section of the email. The signature will vary, depending on who the customer service rep is for the customer.

I can determine which signature to pull from the database, but am not sure how I can include it in the html of the email.

Any suggestions as to how to do this?

Thanks
0
Comment
Question by:force3inc
  • 2
3 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39825780
So to be clear you have chosen to store the jpeg in the database.  Is that correct?
0
 

Author Comment

by:force3inc
ID: 39827888
Yes, I need to do this because the image I need to retrieve depends on a user id variable in my stored procedure - it can vary....

Thanks
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 39827991
I understand.  It is just that typically it is best to store the image on the file system and just have the name in the database.  Another approach is to use a "hybrid" solution using SQL Server's FILESTREAM storage volume.

Having said that if you need to retrieve an image store in SQL Server you will need to rely on your front-end language (VB6, .NET, etc.) in order to do that.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now