We are about to switch to a new forum software. Until then we have removed the registration on this forum.
The question already kinda describes what I'm going for. I need a code to use on Processing that can upload my pictures directly to a domain automatically upon the picture being taken. The code I have currently is:
import processing.video.*;
Capture webcam;
void setup() {
size(640,480);
webcam = new Capture(this,640,480);
String[] devices = Capture.list();
println(devices);
webcam.start();
}
void draw() {
if (webcam.available() == true) {
webcam.read();
image(webcam ,0,0);
}
saveFrame("line.bmp");
}
Which allows me to take the photo from the webcam just fine. Now the hard part, automatic uploading.
Any help would be much appreciated,
Thanks!
Answers
Do you want to upload it to your own domain or some other site? Which one?
My own domain sorry. All I need to is send them to my domain and have them display on a page as they get there.
As a first stop check out this library. Cause if it won't work, I think you'll need to use Java classes yourself.
Quick question on this old thread; is that library still available? Because if I click the link I get a 404 not found.
...belatedly:
postToWeb was taken offline.
Archived copy here:
https://github.com/josephtaylor/processing-deps/tree/master/post_To_Web
Wayback of site here:
http://web.archive.org/web/20150924182238/http://libraries.seltar.org/postToWeb/
Class docs here:
http://www.voyager-one.com/org/seltar/Bytes2Web/PostToWeb.html