viewing mail attachment

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

magnusutomhus

Guest
I'm 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 don't know what I'm doing wrong;

I extract the attachment (it's 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 doesn't work.

is there a missing step?

and, yes I set the response.ContentType
 
Have you tried saving what you've decoded to a file on disk, to see if it's 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 can't be very long.
 
Thank's 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