3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Give Your Cat Twitter Powers

Step 8Upload the image via FTP

To upload our captured image on, we'll use FTP. This is the most straightforward solution to make the images accessible to others on the web, but it does require having access to a server that can accept FTP uploads and serve those files to web browsers.

The FTP code I use is taken verbatim from http://processing.org/hacks/hacks:ftp so I suggest you take a look at that page.

Alternatives:
  • we could also upload the picture using the TwitPic API, but would have to encode the image and generate an HTTP POST request, for which Processing unfortunately doesn't have good library support.
  • We could also post the image to Flickr, using one of the available Flickr API wrappers in Java such as flickrj. I've found Flickr authentication to be a drag though.
  • Finally, to prevent your password from being sent around in plain text, you may wish to use SFTP instead of FTP. Daniel Shiffman has a nice SFTP library for Processing.
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
6
Followers
2
Author:bpunkt