An ISAPI project to send a page with an image to the browser | CodeGuru

An ISAPI project to send a page with an image to the browser

This article describes an ISAPI project to send a page containing an image to the browser. The image itself is somewhere under the root directory, you must hardcode its location into the program or change the provided source to load from registry. The ISAM generates a page that contains an IMG tag with the SRC […]

Written By
CodeGuru Staff
CodeGuru Staff
Nov 20, 1998
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

This article describes an ISAPI project to send a page containing an image to the browser. The image itself is somewhere under the root directory, you must hardcode its location into the program or change the provided source to load from registry.


The ISAM generates a page that contains an IMG tag with the SRC field pointing to the ISAM itself with a GetImage command (see the html source for the dinamically generated page).


The full source code for the ISAM is provided, you will have to compile it in order to get a working site. Before compiling you will have to change some constants in the code: the module location and the image location. These constants are found in the isam.cpp file. Once you have compiled the project with correct site location and image location you will need to take the following steps to install:


  • Create a directory under your http server root for the project
  • Copy the isam.dll file and the image to this directory (the image location must be the same you specified in the isam.cpp file)
  • Create a virtual directory in your http server to access the dll (remember to grant execute rights). The name of the directory must be the same you set in the project


Download Source Code

Last updated: 10 June 1998

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.