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. Advertisements

  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. Advertisements

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:
    740
    AdamM
    Jul 27, 2004
  2. hazz
    Replies:
    6
    Views:
    51,812
    SkyUCHC
    Jun 9, 2010
  3. Lukasz Indyk
    Replies:
    4
    Views:
    512
    Diez B. Roggisch
    May 17, 2004
  4. Replies:
    6
    Views:
    892
    Marc 'BlackJack' Rintsch
    Oct 26, 2006
  5. Replies:
    0
    Views:
    640
  6. Andreas Bogenberger
    Replies:
    3
    Views:
    1,258
    Andreas Bogenberger
    Feb 22, 2008
  7. NickH
    Replies:
    9
    Views:
    343
    Randy Webb
    Jan 22, 2004
  8. Replies:
    1
    Views:
    239
    Darren Dunham
    Oct 2, 2007
Loading...