Click here to Skip to main content
12,360,223 members (61,635 online)
Click here to Skip to main content
Articles » Web Development » ISAPI » General » Downloads

Stats

57.9K views
1.4K downloads
20 bookmarked
Posted

Storing and retrieving binary data in ISAPI extensions

, 5 Sep 2002
An easy way to store and retrieve binary data in an ISAP dll and display them on a web page.
BinaryLib.def
BinaryLib.dsp
BinaryLib.dsw
Hello kitty what.jpg
BinaryLib.dll
#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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Dirk Vandenheuvel
Architect
Belgium Belgium
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 6 Sep 2002
Article Copyright 2002 by Dirk Vandenheuvel
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid