Download to imgur java

Hi, I'm trying to figure out how to load into imgur using java, does anyone have any experience of this kind?

+5
source share
4 answers

First of all, you are best off using imgur api .

The documentation for uploading contains examples for Python and PHP that use cURL. It should be possible to adapt them to Java bindings for cURL or to other HTTP libraries such as HttpClient .

+6
source
  1. Get the developer key .

  2. Look at their image upload APIs .

  3. Use the Apache Commons HttpClient to create a POST request and send:

    • 'image' is a binary image file, a base64 encoded string or URL.
    • 'key' is your registered developer API key. Click here to register for the key.
+5
source
0
source

I used HtmlUnit with great success for such tasks. Read the Submitting a form in the Getting Started section and you will do it as soon as possible.

0
source

All Articles