String value that represents the email attachment, how to store on disk / db?

Ok, it turns out that this third party component that I'm working with stores the email attachment in a string property (it's already decoded).

How do I save this file now?

It has: filename, encodingtype and string representation of the file.

0


source to share


1 answer


Open the file with the StreamWriter / TextWriter class and call the .Write method. Alternatively you can base64 encode with Convert.ToBase64String first.



+2


source







All Articles