Replies: 1 comment 13 replies
-
Can you check this example and try it on your side ? |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm quite new to using this (and also still pretty inexperienced in Java programming itself), so maybe it's just a simple mistake. The issue is that I cannot get any media (or at least the images I tried) to upload. I'm not too sure if its an issue with how I am reading the file to the Byte array, or syntax, but it always results in either
javax.net.ssl.SSLException: Received fatal alert: record_overflow
orjava.io.IOException: Error writing to server
, depending on the image.Here is the code:
The files are all <5MB and they appear to be read in correctly if I list out the contents of the byte array. The client instance itself will work just fine with other methods, such as posting a tweet.
Edit: Resolved in this post.
Beta Was this translation helpful? Give feedback.
All reactions