If you want the slave to retrieve a file from internet, you should ask him to save first in his computer for later being able to get it into your script with getFile(msg) like it was answered above. And you have to be sure that the pic the slave sends is in a proper format for sexscripts (jpg png gif) or it will not be shown.
I'm sorry if it's not here the propper place to comment that, but I already tried to get an image file from the user, and I think if your script is thought to be run several times it's better to save in its image folder a copy of the image file, so if the user removes the original file he passed to the script and runs afterwards the script, it will be able to show the image.
I tried to copy the file with the copy methods from AntBuilder, but it didn't seem to work. So I implemented a copy function to copy an image file pretended to be shown afterwards. I put here the code within an example for the case someone's find it useful.
Code:
setInfos(3, "AssPic", "Test Script to show how to get a pic from slave", "wololo", "complete", -52, "en", ["test"]);
// getImage(msg) definition
def getImage = {
msg ->
def imgPath = getFile(msg);
// Change here myScriptImageFolder to your script Image folder relative to the "images/" folder
def pic = "myScriptImageFolder/"+(new File(imgPath)).getName();
def inStream = new FileInputStream(imgPath);
def outStream = new FileOutputStream("images/"+pic, false);
outStream.getChannel().transferFrom(inStream.getChannel(), 0, (new File(imgPath)).length());
inStream.close();
outStream.close();
return pic;
}
// Script body
setImage("default-female.jpg");
show("Send me a photo of your ass");
showButton("Ok mistress");
def assPic = getImage("Send me your ass");
show("I got it.");
wait(4);
setImage(assPic);
show("this is your ass");
wait(5);
setImage("default-female.jpg");
show("I hope you liked it");
showButton("yes mistress");
setImage(null);
show("");
return null;