How to upload pictures taken on webcam via processing directly to website as they are taken?

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

Sign In or Register to comment.