troubleshooting Question

URI formats are not supported - trying get get an image thats held in a SQL field

Avatar of mousemat24
mousemat24 asked on
.NET Programming
4 Comments1 Solution1847 ViewsLast Modified:
Hi there

Wonder if you can help me?

I'm using C#, and want to send an email out to users using SMTP, the data will come from SQL, and images will be uploaded to a SQL table. When the email is sent to the users it must contain the data from SQL table, but also, it must display the image in the email (as I said, the image is held in a SQL table - image field in SQL)

The problem I'm having is on this line in my SMTP code

LinkedResource logo = new LinkedResource(<ERROR>);

"URI formats are not supported."

How do I display an image, thats stored in a SQL image field. Please note, I cant upload the file to the server.

Thanks
Mousemat24

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros