The file ImagesPackage.zip contains the whole package:

Sample SQL Server databases
---------------------------
ImagesClient.bak
ImagesHost.bak

Web pages
---------
Image.asp
ImageDownload.asp
ImageHelp.htm
Images.asp

Batch files
-----------
DeleteImages.bat
DeleteImagesParameters.bat
LoadImages.bat
LoadImagesParameters.bat
SaveImages.bat
SaveImagesParameters.bat

To install:

STEP 1.
Load the SQL Server databases onto your server (the host database contains some sample images).
You must use SQL Server 2005 Surface Area Configuration to enable OPENROWSET and OPENDATASOURCE support.

STEP 2.
Install the four Web pages in your Web directory.

STEP 3 (optional)
To add/delete images to either database, use the batch files after setting up their corresponding parameter files.
Note that the load/save batch files assume the presence of the corresponding stored procs in either database,
so if you use your own databases, you must install those two procs in them.

To view or download files:

http://nnn.nnn.nnn.nnn/Images.asp
   ?hostServer     = HOSTSERVER                       Required
   &hostLogin      = HOSTLOGIN                        Required
   &hostPassword   = HOSTPASSWORD                     Required
   &hostDatabase   = HOSTDATABASE                     Required
   &clientServer   = CLIENTSERVER
   &clientLogin    = CLIENTLOGIN
   &clientPassword = CLIENTPASSWORD
   &clientDatabase = CLIENTDATABASE
   &orderby        = ImageId | ImageName | ImageSize  Default=ImageName
   &helplevel      = 0 | 1 | 2                        Default=2

For example,

http://nnn.nnn.nnn.nnn/images/images.asp?hostServer=beach\sqlexpress&hostLogin=glen&hostPassword=glen+cooper&hostDatabase=imagesHost&clientServer=beach\sqlexpress&clientLogin=glen&clientPassword=glen+cooper&clientDatabase=imagesClient&orderby=ImageName&helpLevel=2
where nnn.nnn.nnn.nnn is your server's external address.

Note that if you must connect with SSL to a host server, you need to use https:// in the link (and possess a certificate). 
This won't work with BlackBerries, however.

You must enable Ad Hoc Remote Queries and OLE Automation for SQL Server (use Surface Area Configuration For Features to do this).

For portability, follow the instructions in the asp files and stored procs.  
Although database names may contain blanks, table and column names may not.

Issues
------

1.
When dowloading all files at once, you may get a Web error if the number (or size) of the files is large.
However, if you refresh the page the error message may disappear.













