Include content stream png in HTML email as image?

M

Mark B

This is sending a blank image with the HTML email. Any ideas why?

Dim ms As MemoryStream = New MemoryStream
bmp.Save(ms, ImageFormat.Png)

Dim MessageImage As New LinkedResource(ms, "image/png")
 
M

Mark B

This works:

Dim ms As MemoryStream = New MemoryStream
bmp.Save(ms, ImageFormat.Png)
ms.Seek(0, SeekOrigin.Begin)
Dim MessageImage As New LinkedResource(ms)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top