viewing mail attachment

  • Thread starter Thread starter magnusutomhus
  • Start date Start date
M

magnusutomhus

Guest
Im trying to make my own webmail, and I now can get mail from my pop3 account, read mail, mime decode them and so on.

But know I went in to attachments...

I really dont know what Im doing wrong;

I extract the attachment (its base64 encoded) and decode it into a byte array. Then i want to show the content in a browser window with response.binarywrite(mybytearray)
but it doesnt work.

is there a missing step?

and, yes I set the response.ContentType
 
Have you tried saving what youve decoded to a file on disk, to see if its what it should be?
 
Can we see more code from your page? I assume all this page does is spit out an image so it cant be very long.
 
Thanks for your help... :)


When I cleaned the code, i moved the response.binarywrite-part from a function to the top of the page, and now it works. Great!

Tjohoo! (Swedish)
 
Back
Top