I must be slow. I got the postToWeb and well it seems to not like the URL I gave it for the twitpic. according to the api, i need the message, and user name and password. So I did this:
Code:void keyPressed()
{
String url = "http:/grrractivelinkerrorinforum/twitpic.com/api/uploadAndPost?username=mytweetname&password=mypass&media=";
if(key == 'j'){
ImageToWeb img = new ImageToWeb(this);
img.save("jpg",true);
img.post("test",url,"jpg-test",true,img.getBytes(g));
}
}
It does make it to the twitpic api server thing, but always returns a:
Code:<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="fail">
<err code="1001" msg="Invalid twitter username or password" />
</rsp>
I am guessing that the extra arguments to img.post are messing up my post string. I wish this was simpler.
Thanks, Shane
(and the image I am wanting to send will be from a Capture device , i.e. web cam)...
Any help here to get me over the hump?