Click here to Skip to main content
15,891,529 members
Articles / Web Development / IIS

Storing and Retrieving Binary Data in ISAPI Extensions

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
5 Sep 20023 min read 70.7K   1.5K   20  
An easy way to store and retrieve binary data in an ISAP DLL and display them on a web page
#if !defined(AFX_BINARYLIB_H__D7957707_1B0F_424D_BC7E_065755AEC4F7__INCLUDED_)
#define AFX_BINARYLIB_H__D7957707_1B0F_424D_BC7E_065755AEC4F7__INCLUDED_

// BINARYLIB.H - Header file for your Internet Server
//    BinaryLib Extension

#include "resource.h"

class CBinaryLibExtension : public CHttpServer
{
public:
	CBinaryLibExtension();
	~CBinaryLibExtension();

// Overrides
	// ClassWizard generated virtual function overrides
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//{{AFX_VIRTUAL(CBinaryLibExtension)
	public:
	virtual BOOL GetExtensionVersion(HSE_VERSION_INFO* pVer);
	//}}AFX_VIRTUAL
	virtual BOOL TerminateExtension(DWORD dwFlags);

	// TODO: Add handlers for your commands here.
	// For example:

	void Default(CHttpServerContext* pCtxt);
	void GetImage(CHttpServerContext* pCtxt, LPCSTR sImage);

	DECLARE_PARSE_MAP()

	//{{AFX_MSG(CBinaryLibExtension)
	//}}AFX_MSG
};


//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BINARYLIB_H__D7957707_1B0F_424D_BC7E_065755AEC4F7__INCLUDED)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Architect
Belgium Belgium
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions