Skip to content

Added Attachment example#286

Closed
gabber12 wants to merge 3 commits intosendgrid:mainfrom
gabber12:master
Closed

Added Attachment example#286
gabber12 wants to merge 3 commits intosendgrid:mainfrom
gabber12:master

Conversation

@gabber12
Copy link
Copy Markdown

Attachment example

@thinkingserious thinkingserious added the status: code review request requesting a community code review or review from Twilio label Oct 19, 2017
@SendGridDX
Copy link
Copy Markdown

SendGridDX commented Oct 19, 2017

CLA assistant check
All committers have signed the CLA.

@thinkingserious thinkingserious added the status: code review request requesting a community code review or review from Twilio label Oct 22, 2017
Comment thread USE_CASES.md
public class Example {
public static byte[] getContent(File file) throws IOException {
FileInputStream fisTargetFile = new FileInputStream(file);
return IOUtils.toString(fisTargetFile, "UTF-8").toBytes();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ByteStreams.toByteArray(in)

Comment thread USE_CASES.md

SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY"));
Request request = new Request();
try {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try with resources?

@thinkingserious thinkingserious added difficulty: medium fix is medium in difficulty hacktoberfest labels Oct 28, 2017
@thinkingserious
Copy link
Copy Markdown
Contributor

@gabber12

We have not been able to merge your Pull Request, but because you are awesome - we wanted to make sure you could still get a SendGrid Hacktoberfest shirt.

Please go fill out our swag form before Nov 5th and we will send the shirt! (We know that you might have tried this before and it didn’t work, sorry about that!)

You have till Nov 5th to fill out this form in order to get the Hacktoberfest shirt!

Thank you for contributing during Hacktoberfest! We hope to see you in the repos soon! Just so you know, we always give away a SendGrid shirt for your first ever non-Hacktoberfest PR that gets merged.

@thinkingserious thinkingserious changed the base branch from master to main July 28, 2020 14:34
@childish-sambino
Copy link
Copy Markdown
Contributor

Closing due to inactivity. Please ping here if work is to continue.

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

Labels

difficulty: medium fix is medium in difficulty status: code review request requesting a community code review or review from Twilio

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants