Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Include content stream png in HTML email as image?

Reply
Thread Tools

Include content stream png in HTML email as image?

 
 
Mark B
Guest
Posts: n/a
 
      10-22-2008
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")

 
Reply With Quote
 
 
 
 
Mark B
Guest
Posts: n/a
 
      10-23-2008
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" <(E-Mail Removed)> wrote in message
news:ucEP1N%(E-Mail Removed)...
> 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")
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error: Only Content controls are allowed directly in a content page that contains Content controls. hazz ASP .Net 6 06-09-2010 01:54 PM
/* #include <someyhing.h> */ => include it or do not include it?That is the question .... Andreas Bogenberger C Programming 3 02-22-2008 10:53 AM
howto generate html email with reference to a png-picture (inline) thomas.frei@web.de Perl Misc 1 10-02-2007 06:18 PM
ANN: PNG image CAPTCHA with PNG canvas available (SkimpyGimpy) aaronwmail-usenet@yahoo.com Python 0 04-18-2007 07:33 PM
newbie: include xml content in html Rui Maciel XML 1 11-02-2005 04:37 PM



Advertisments