#### Issue Summary - automatically encode the file and select the correct content type #### Steps to Reproduce https://github.com/sendgrid/sendgrid-csharp/issues/244 #### Technical details: - sendgrid-csharp Version: 7.X.X - .NET Version: 4.5.2
Activity
rlaraujo commentedon Nov 23, 2016
Just in case this could be of any help!!!
Instead of making:
System.Text.Encoding.UTF8.GetString(pdfBuf);
I did a:
attachment.Content = Convert.ToBase64String(pdfBuf);
And it worked like Charm!
thinkingserious commentedon Nov 29, 2016
Thanks @rlaraujo, I will try it out.
rlaraujo commentedon Dec 5, 2016
Hi @thinkingserious did it work for you?
thinkingserious commentedon Dec 5, 2016
@rlaraujo,
I have not had a chance to try it :(
It's still in my backlog though and it will get there.
If other people vote this up, it can get a higher spot in the queue.
thinkingserious commentedon Sep 30, 2017
Please see here.