[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Retrieve Image (jpeg) Stored In SQL Server

Posted on 2014-01-31
3
Medium Priority
?
358 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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

656 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