Skip to content

Create an Attachment Helper #248

Closed
Closed

Description

@thinkingserious

Issue Summary

  • automatically encode the file and select the correct content type

Steps to Reproduce

#244

Technical details:

  • sendgrid-csharp Version: 7.X.X
  • .NET Version: 4.5.2

Activity

  1. rlaraujo commented on Nov 23, 2016

    @rlaraujo

    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!

  2. thinkingserious commented on Nov 29, 2016

    @thinkingserious
    ContributorAuthor

    Thanks @rlaraujo, I will try it out.

  3. rlaraujo commented on Dec 5, 2016

    @rlaraujo

    Hi @thinkingserious did it work for you?

  4. thinkingserious commented on Dec 5, 2016

    @thinkingserious
    ContributorAuthor

    @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.

  5. thinkingserious commented on Sep 30, 2017

    @thinkingserious
    ContributorAuthor

    Please see here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions