![]() |
![]() |
![]() |
|
[
About the Wizard's Toolkit ] [ Command-line Tools ] [ Application Program Interface ] [ Install from Source Unix Windows Binary Releases Unix Windows ] [ Download ] [ Search ] [ Sponsors: ] |
FileToBlob() returns the contents of a file as a blob. It returns the file as a blob and its length. If an error occurs, NULL is returned. The format of the FileToBlob method is:
void *FileToBlob(const char *filename,const size_t extent,size_t *length,
ExceptionInfo *exception)
A description of each parameter follows: blobFileToBlob() returns the contents of a file as a blob. If an error occurs NULL is returned. filenameThe filename. extentThe maximum length of the blob. lengthOn return, it reflects the actual length of the blob. exceptionReturn any errors or warnings in this structure. GetBlobProperties() returns information about a blob. The format of the GetBlobProperties method is: const struct stat *GetBlobProperties(const BlobInfo *blob_info) A description of each parameter follows: blob_infothe blob info. SyncBlob() flushes the datastream if it is a file or synchonizes the data attributes if it is an blob. The format of the SyncBlob method is: int SyncBlob(BlobInfo *blob_info) A description of each parameter follows: blob_infothe blob info. |