Hi I'm trying to figure out how to upload to imgur using java, does anyone have any experience with this kind of thing?
A:
I've used HtmlUnit with great success for this sort of tasks. Read the Submitting a form
in the Getting started section, and you'll be done in no time.
Geo
2009-11-28 21:55:37
+2
A:
First of all, you're likely to be best off using the imgur api.
The documentation for uploading contains examples for Python and PHP that use cURL. It should be possible to adapt these to the Java bindings for cURL, or other HTTP libraries such as HttpClient.
Phil Ross
2009-11-28 22:05:43
A:
Get a developer key.
Look at their Image Upload API.
Use Apache Commons HttpClient to create a POST request and send:
- 'image' - A binary image file, base64 encoded string, or URL.
- 'key' - Your registered developer API key. Click here to register for a key.
Pascal Thivent
2009-11-28 22:30:44
BalusC
2009-11-28 22:40:27