The mimetype is image/jpg.
You can use the Win32 API
URLDownloadToFile.
Your code would look something like this:
code:
function URLDownloadToFile (sUrl, sFile) {
Interop.Call('wininet.dll', 'DeleteUrlCacheEntryW', sUrl);
Interop.Call('urlmon.dll', 'URLDownloadToFileW', 0, sUrl, sFile, 0, Interop.GetInterfacePtr('OnProgress'));
}
function OnProgress (ulProgress, ulProgressMax, ulStatusCode, szStatusText) {
if (ulProgress == ulProgressMax) Debug.Trace('Download Complete');
}
Now I cannot guarantee that the callback function for this works because Plus! had to handwrite all of the function callbacks and he may have missed this one. If this is the case then you can do this:
code:
function URLDownloadToFile (sUrl, sFile) {
Interop.Call('wininet.dll', 'DeleteUrlCacheEntryW', sUrl);
Interop.Call('urlmon.dll', 'URLDownloadToFileW', 0, sUrl, sFile, 0, 0);
}