HI,
I want to send a picture to a webbrowser and created the server in VB, which works well.
To get the required MIME format of the picture I loaded it as attachment, sent it to myself opened the Email in a texteditor, copied the MIME part of the picture and sent it with the server. This works so far.
Now, I would like to extract the MIME textstring directly from the attachment and tried this:
Code:
    
        Dim filename As String = "D:\2034230.JPG"
        Dim data As Attachment = New Attachment(filename)
        Dim content As ContentType = data.ContentType
        content.MediaType = MediaTypeNames.Image.Jpeg
        Dim MimeStream As Stream = data.ContentStream
Could someboy help me how to get the stream into a string which hopefully holds the expected picture in MIME format?
thanks,