Click here to Skip to main content
15,936,349 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,
I have one .eml file which contains one attachment. And this attached file is encoded in the "quoted-printable".Now, I'm creating one FileStream to read from this .eml file. Then I'm creating the second FileStream which is used for writing. i.e. I'm reading from one FileStream and writing to other FileStream. So, if I read whole content from first FileStream and write entire content to second FileStream then the attached file in the newly created .eml file is not getting corrupted. But if I do the same thing chunk by chunk then that attached file becomes corrupted. Now, If encoding type of attached file is base64 then the attached file never gets corrupted. So, quoted-printable attachment gets corrupted when streamed in chunk. Can anyone suggest what should be done to solve this issue??



Thanks and Regards,
Riddhi
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900