need to open an image open in web browser
Posted
by manish
on Stack Overflow
See other posts from Stack Overflow
or by manish
Published on 2010-05-02T10:11:19Z
Indexed on
2010/05/02
10:17 UTC
Read the original article
Hit count: 284
byte.eml file is having image base64 encoded value ..and i am tring to open it in browser ...but this is not populating image file....plz help me out..
this is code...
Dim oFile As System.IO.File
Dim orEAD As System.IO.StreamReader
orEAD = oFile.OpenText("E:\mailbox\P3_hemantd.mbx\byte.eml")
Dim content As String
content = ""
''Dim intsinglechr As Integer
''Dim csinglechr As String
While orEAD.Peek <> -1
content = content & Chr(orEAD.Read)
content = Replace(content, vbCrLf, "")
content = Replace(content, vbTab, "")
content = Replace(content, " ", "")
End While
Response.ContentType = "image/jpeg"
Response.BinaryWrite(Convert.FromBase64String(content))
© Stack Overflow or respective owner