Include content stream png in HTML email as image?

Discussion in 'ASP .Net' started by Mark B, Oct 22, 2008.

  1. Mark B

    Mark B Guest

    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, Oct 22, 2008
    #1
    1. Advertising

  2. Mark B

    Mark B Guest

    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" <> wrote in message
    news:ucEP1N%...
    > 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, Oct 23, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    519
    AdamM
    Jul 27, 2004
  2. Replies:
    6
    Views:
    817
    Marc 'BlackJack' Rintsch
    Oct 26, 2006
  3. Replies:
    0
    Views:
    462
  4. Andreas Bogenberger
    Replies:
    3
    Views:
    886
    Andreas Bogenberger
    Feb 22, 2008
  5. Replies:
    1
    Views:
    150
    Darren Dunham
    Oct 2, 2007
Loading...

Share This Page