Question : Email Image from Byte Array

Hi to all,

I have an SQL 2005 database where I store thumbnails of my Item images. I need to email these images to some users using an automated process. I can't save the byte array to file to add this image as an attachment because of our security policy.

I was wondering if there is a way to email this image as a byte array to the user and then the user will be able to see the picture. Any suggestions would be appreciated.

I am using Visual Studio 2010 with .Net 4.0

Thanks in advance.

Answer : Email Image from Byte Array

You can stuff your byte-array/image into a memorystream and use that to create the attachment

See http://www.systemnetmail.com/faq/3.4.2.aspx for an example.

Just make sure you set the correct MIME-type

Random Solutions  
 
programming4us programming4us