Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Include content stream png in HTML email as image? (http://www.velocityreviews.com/forums/t640945-include-content-stream-png-in-html-email-as-image.html)

Mark B 10-22-2008 01:13 AM

Include content stream png in HTML email as image?
 
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")


Mark B 10-23-2008 02:27 AM

Re: Include content stream png in HTML email as image?
 
This works:

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




"Mark B" <none123@none.com> wrote in message
news:ucEP1N%23MJHA.4380@TK2MSFTNGP04.phx.gbl...
> 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")
>




All times are GMT. The time now is 11:22 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.