I need help in using, imgur’s API, to upload a photo and obviously retrieve a link.
IMGUR API:
http://api.imgur.com/resources_anon
I’m able to get the URI for my image required to be uploaded but how can I implement the api above,
I’ve downloaded mime4j and httpmime and added them to the libraries, but I can’t seem to understand how to use them,
I looked at this but its confused me :
Sending images using Http Post
Just from having a quick look at imgur and this question, I’ve come up with (pretty much just combined the two) the following. Let me know if it doesn’t work.
Edit: It seems we need to pass Base64.DEFAULT as the second option to Base64.encode. Updated the example above.
Edit 2: Can you use the following code, based upon the oracle site, and report back what it outputs: