Thank you all in advance for your assistance!
I am creating a .NET WCF web service (C#) for sending emails.. basically a central emailer service that all internal apps can use. my hurdle has been email attachments (1 or more)... I have been looking for the best practices for sending binary data to a WCF web service. The following needs to be considered:
- all requests to this service will be internal
- attachments are optional but may contain more than 1
- for multiple attachments i need to ensure my service doesnt time out
I have read alot about converting binary to a base64 string but alot of the drawbacks with performance (especially with multiple files) scared me from accepting this approach. So i kept searching and found some MTOM topics which are supposed to be more efficient for binary file transfers.
Basically i need guidance on what approach is the best practice for this type of functionality and ideally some sample code to send me on my way.
Thanks again in advance for your time!