For AspJpeg to open a remote image located at a particular URL, this image
must first be downloaded to the server where AspJpeg is running.
To perform the download, Microsoft XML DOC's XMLHTTP object can be used.
The XMLHTTP object enables you to specify a URL to download the image from, and perform
the download to a memory array, which can then be passed directly to AspJpeg's OpenBinary method.
This frees your application
from the necessity to create a temporary file on the server's hard drive.
The following code snippet demonstrates this technique:
Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
objHTTP.Open "GET", "http://www.aspjpeg.com/images/ps_logo.gif"
Set Jpeg = Server.CreateObject("Persits.Jpeg")
Jpeg.Height = jpeg.OriginalHeight / 2
Jpeg.Width = jpeg.OriginalWidth / 2