GENERATED: FEB 13,2021 - 5:19PM
File To Blob Example [V10.21.02.0390]

Previous Page

This application illustrates two blob functions, JumpStartFileToBlob() and JumpStartBlobToFile(), available from the standard AACHTControlPanel template interface.

Please note, that the code in the EntryPointMain() procedure has very little to do with file to blob or blob to file. This code looks up a file name to be sent to a blob and manages the data base that stores the blob record. Your blob data base may look nothing like the file ZStore that we are using here.

The salient point is that when calling the functions JumpStartFileToBlob() and its inverse, JumpStartBlobToFile(), you are responsible for creating, fetching and saving the data base records in the blob-containing data table. The functions provided, will insert the files to, and extract files independently from, your blob record. Data base I/O is up to you. However the I/O required is standard ABC stuff which you should already know how to do.

We have demonstrated here a couple of HNDDisk class functions to help us with our popup menu, when someone selects a file to be restored or deleted, for example. These have no direct relationship with the two blob functions being demonstrated.

Count Global Template Name Qty Global Template Description
(0001) AACHTControlPanel(HNDTools) 1 © CHT AACHTControlPanel - CHT Global Control Panel (hndtools.tpl)
(0002) ApplicationImagesEx(HNDTools) 1 © CHT ApplicationImagesEx - Application Styling System
(0003) HNDCMPControlPanel(HNDTools) 1 © CHT PROJECT BUILDER SUPPORT - Interface to the CHT Project Builder.
(0004) HandyVersionResource(HNDTools) 1 © CHT HandyVersionResource - Version Resource/Build Number Information To EXE
(0005) INIFile(HNDTools) 1 © CHT INIFile - .INI FIle and Registry extension classes - HNDIni - globally to your application.
(0006) VblFileNames(HNDTools) 1 © CHT VblFileNames - Incorporate variable file names and defaults into your app from the dictionary.
(6) Global Templates Found

1 - Procedure Template Type: HandySourceProcedure
JumpStartFileToBlob (STRING xInFile, *BLOB xFileBlob, <*ULONG xRtnHash>), BYTE, PROC
Count Local Template Name Qty Local Template Description
(0007) EmbedDiskFunctions(HNDTools) 1 © CHT EmbedDiskFunctions - Disk Functions Classes - HDisk An Instance Of: HNDDisk
(1) Local Templates Found In JumpStartFileToBlob

2 - Procedure Template Type: Splash
JumpStartSplash07 ()
Count Local Template Name Qty Local Template Description
(0008) AppBuildDateTimeStamp(HNDTools) 1 © CHT AppBuildDateTimeStamp - An application build date/time stamp.
(0009) AppBuildNumberStamp(HNDTools) 1 © CHT AppBuildNumberStamp - An application build number or version stamp.
(0010) AppCopyRightStamp(HNDTools) 1 © CHT AppCopyRightStamp - An application copyright stamp.
(0011) HandyTellMeControl(HNDTools) 1 © CHT HandyTellMeControl - Text box control to provide a message or help text.
(0012) ProcedureImagesEx(HNDTools) 1 © CHT ProcedureImagesEx - Application Styling System
(5) Local Templates Found In JumpStartSplash07

3 - Procedure Template Type: Window
EntryPointMain ()
Count Local Template Name Qty Local Template Description
(0013) CHTBestPracticeEmbedClass(HNDTools) 1 © CHT Best Practice Embedding Assistant
(0014) EmbedDiskFunctions(HNDTools) 1 © CHT EmbedDiskFunctions - Disk Functions Classes - Disk An Instance Of: HNDDisk
(0015) EmbedWindowFunctions(HNDTools) 1 © CHT EmbedWindowFunctions - HWin An Instance Of: HNDWindow
(0016) HandyHelpWhatsNew(HNDTools) 1 © CHT HandyHelpWhatsNew - Build A What's New Request To Your Website.(9)
(0017) HandyTellMeControl_EWF(HNDTools) 1 © CHT HandyTellMeControl_EWF - Text box control to provide a message or help text. Requires EmbedWin
(0018) HandyToolBarGradient(HNDTools) 1 © CHT HandyToolBarGradient - Place gradient properties as a backdrop on the window toolbar.
(0019) HandyWindowGradient(HNDTools) 1 © CHT HandyWindowGradient - Place gradient properties as a backdrop on the window.
(0020) PostControlEvent(HNDTools) 3 © CHT Post an event to a control in a local window(7)
(0021) ProcedureImagesEx(HNDTools) 1 © CHT ProcedureImagesEx - Application Styling System
(9) Local Templates Found In EntryPointMain

4 - Procedure Template Type: HandySourceProcedure
JumpStartBlobToFile (STRING xOutFile, *BLOB xFileBlob, <ULONG xOrigHash>), BYTE, PROC
Count Local Template Name Qty Local Template Description
(0022) EmbedDiskFunctions(HNDTools) 1 © CHT EmbedDiskFunctions - Disk Functions Classes - HDisk An Instance Of: HNDDisk
(1) Local Templates Found In JumpStartBlobToFile

Copyright © 1996-2021 - CHT Version: [25A.01.00]
Gus M. Creces, CHT - Clarion Handy Tools
All Rights Reserved Worldwide

chtlogo001.gif
Application Templates