GENERATED: JUL 10,2017 - 11:11PM
File To Blob Example [V10.17.05.0243]

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.

Any questions, feel free to ask: news.cwhandy.ca

Cheers,
Gus M. Creces
The Clarion Handy Tools Page
www.cwhandy.ca (CHT Website)
news.cwhandy.ca (CHT Forum)


Count Global Template Name Qty Global Template Description
(0001) AACHTControlPanel(HNDTools) 1 CHT AACHTControlPanel - Global Control Panel.
(0002) ApplicationImagesEx(HNDTools) 1 CHT ApplicationImagesEx - Application Styling System
(0003) HNDCMPControlPanel(HNDTools) 1 CHT HNDCMPControlPanel - Interface to the CHT Compile Manager.
(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 - An Instance Of:
(1) Local Templates Found In JumpStartFileToBlob

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

3 - Procedure Template Type: Splash
JumpStartSplashCHTBlue ()
Count Local Template Name Qty Local Template Description
(0018) AppBuildDateTimeStamp(HNDTools) 1 CHT AppBuildDateTimeStamp - An application build date/time stamp.
(0019) AppBuildNumberStamp(HNDTools) 1 CHT AppBuildNumberStamp - An application build number or version stamp.
(0020) AppCopyRightStamp(HNDTools) 1 CHT AppCopyRightStamp - An application copyright stamp.
(0021) HandyTellMeControl(HNDTools) 1 CHT HandyTellMeControl - Text box control to provide a message or help text.
(0022) ProcedureImagesEx(HNDTools) 2 CHT ProcedureImagesEx - Application Styling System
(5) Local Templates Found In JumpStartSplashCHTBlue

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

Copyright © 1996-2017 - CHT Version: [21C.00.00]
Gus M. Creces and The Clarion Handy Tools Page.
All Rights Reserved Worldwide

chtlogo001.gif Templates In Application: HNDFBLOB.APP