GENERATED: MAR 31,2012 - 3:55PM
File To Blob Example [V8.01.00]

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.com

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 AACHTControlPanel - CHT Global Control Panel.
(0002) ApplicationImagesEx(HNDTools) 1 ApplicationImagesEx - A tool to better control the use of images and icons in your application.
(0003) HNDCMPControlPanel(HNDTools) 1 HNDCMPControlPanel - Interface to the CHT Compile Manager.
(0004) HandyVersionResource(HNDTools) 1 HandyVersionResource - Version Resource/Build Number Information To EXE
(0005) INIFile(HNDTools) 1 INIFile - Attach CHT .INI FIle and Registry extension classes - HNDIni - globally to your application.
(0006) VblFileNames(HNDTools) 1 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 EmbedDiskFunctions - An Instance Of:
(0008) ProcedureImagesEx(HNDTools) 1 ProcedureImagesEx - A tool to better control the use of images and icons in your procedure.
(2) Local Templates Found In JumpStartFileToBlob

2 - Procedure Template Type: Window
EntryPointMain ()
Count Local Template Name Qty Local Template Description
(0009) EmbedDiskFunctions(HNDTools) 1 EmbedDiskFunctions - An Instance Of:
(0010) EmbedWindowFunctions(HNDTools) 1 EmbedWindowFunctions - An Instance Of:
(0011) HandyHelpFileFetch(HNDTools) 2 HandyHelpFileFetch - Build A Help File Request To Your Website.(11)
(0012) HandyHelpWhatsNew(HNDTools) 1 HandyHelpWhatsNew - Build A What's New Request To Your Website.(9)
(0013) HandyTellMeControl_EWF(HNDTools) 1 HandyTellMeControl_EWF - Text box control to provide a message or help text. Requires EmbedWindowFunctions Template.(8)
(0014) PostControlEvent(HNDTools) 3 Post an event to a control in a local window(7)
(0015) ProcedureImagesEx(HNDTools) 1 ProcedureImagesEx - A tool to better control the use of images and icons in your procedure.
(7) Local Templates Found In EntryPointMain

3 - Procedure Template Type: Splash
JumpStartSplashCHTBlue ()
Count Local Template Name Qty Local Template Description
(0016) AppBuildDateTimeStamp(HNDTools) 1 AppBuildDateTimeStamp - An application build date/time stamp.
(0017) AppBuildNumberStamp(HNDTools) 1 AppBuildNumberStamp - An application build number or version stamp.
(0018) AppCopyRightStamp(HNDTools) 1 AppCopyRightStamp - An application copyright stamp.
(0019) HandyTellMeControl(HNDTools) 1 HandyTellMeControl - Text box control to provide a message or help text.
(0020) ProcedureImagesEx(HNDTools) 2 ProcedureImagesEx - A tool to better control the use of images and icons in your procedure.
(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
(0021) EmbedDiskFunctions(HNDTools) 1 EmbedDiskFunctions - An Instance Of:
(0022) ProcedureImagesEx(HNDTools) 1 ProcedureImagesEx - A tool to better control the use of images and icons in your procedure.
(2) Local Templates Found In JumpStartBlobToFile

Copyright © 1996-2012
Gus M. Creces and The Clarion Handy Tools Page.
All Rights Reserved Worldwide

chtlogo001.gif Templates In Application: HNDFBLOB.APP