?
Solved

Retrieve Image (jpeg) Stored In SQL Server

Posted on 2014-01-31
3
Medium Priority
?
357 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Suggested Courses

777 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