Include content stream png in HTML email as image?

  • Thread starter Thread starter Mark B
  • Start date Start date
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")
 
This works:

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