Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attaching Resources to embeds doesn't upload the resource's file #27

Closed
R3alCl0ud opened this issue Apr 28, 2017 · 0 comments
Closed

attaching Resources to embeds doesn't upload the resource's file #27

R3alCl0ud opened this issue Apr 28, 2017 · 0 comments

Comments

@R3alCl0ud
Copy link
Owner

when you send a RichEmbed with a Resource for a thumbnail or image the embed gets sent but the image/thumbnail is left out.

Although this doesn't happen if you pass the returned value from Resource#getFile() to RichEmbed#setThumbnail(File file) or RichEmbed#setImage(File file).

I believe the issue resides in DLUtil#readAllBytes(Resource resource), the issue is most likely a result of a possible inconsistency in how InputStream#read() has been implemented in FileInputStream and URL#openStream().

On the other hand, there might just be an issue with the fileName in the file upload payload.

@R3alCl0ud R3alCl0ud added this to the v0.2.0 milestone Apr 28, 2017
@R3alCl0ud R3alCl0ud self-assigned this Apr 28, 2017
R3alCl0ud added a commit that referenced this issue Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant