This is an example of a custom database driver which exports any note(s) as a MIME file.
To use this code, simply place ndbmime.dll into the Notes/Domino program directory. If the code will be running client-side, the DLL must be on each user's machine who will be executing the code, otherwise they'll receive an error message. If the code will be running on the server-side, the DLL must be placed in the Domino program directory. Additionally, the ndbmime.sym file should be placed in the program directory as well. This file is used by NSD in the event of a Notes crash, to help identify exactly where the code faulted.
HOW TO USE
To convert a note to MIME, simply call the code like this:
@DbCommand("mime" : "NoCache" ; "ConvertToMime" ; "<Server>" : "<FilePath>" ; "<NOTEID 1>" : "<NOTEID 2>" ; "<File path 1>" : "<File path 2>" )
Here's a break down of the options: