Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Nov : Ecoded attachments to a TidMessage

www.cryer.info
Managed Newsgroup Archive

Ecoded attachments to a TidMessage

Subject:Ecoded attachments to a TidMessage
Posted by:"Richard Bibby" (richard.bib..@profdoc.se)
Date:Wed, 1 Nov 2006 20:52:31

Hej,

I have an application that reads a file and then sends it as an attachement
on an TidMessage.  This works fine and I can send (to mysef), received and
view the attached file.

Then I decided that I must encrypt the file before I attach it. So I used
the  .Net System.Security.Cryptography assembly to encrypt it.

When you look at the encypted file it has lots of "strange" characters i.e.
characters with coding above the normal a-z.

When I send the file to myself, and then look at it after I have recieved it
I see that the characters have changed. Consequently I can not decrypt it.

I don't know why this is happening but I susppect that it must have
something to do with local or character coding.

Anyone any ideas how i can solve this?

What is the difference between a binary file (such as a progam as an
attachement) and my text file?  Am I attaching it incorrectly?

/Richard

Replies:

www.cryer.info
Managed Newsgroup Archive