AE using socket to import picture from URL - Need Your Help
I have a project that works with local network using the path name. I want to update the project to replace all placeholders with a picture located at a URL address instead of the local network. I have no experience with socket coding and can't seem to find the right snippets of code on the internet to get me through this point of using URL as a file location.
I tried this code (using a picture at this URL as an example);
webConnect= new Socket;
if(webConnect.open("http://distilleryimage3.s3.amazonaws.com")) {
webConnect.write('GET /2940b7e0236511e2af9022000a1f9a23_7.jpg HTTP/1.0nn');
response= webConnect.read();
webConnect.close();
alert('complete');
} else {
alert('fail');
}
Any help will be appreciated. I need the results of the socket connection to be a object I can use in the statement
curItem.replace(new File( <picture path> );
Thanks again.
