|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home GeoPack GeoDB Methods RetrieveBLOB|
|See also: AddBLOB, TgdbItem|
The method RetrieveBLOB retrieves binary data from the database and stores it either in a file (version ), or in a memory structure , or in a memory stream . The parameter DBEntry addresses the database entry (DBEntry may take values between 1 and NumEntries). RetrieveBLOB returns a TRUE value if any binary data is available for the specified database entry.
The variable parameter MetaInfo contains the meta information about the BLOB.
Overloaded version  - retrieve to file:
The parameter FilePath specifies the destination file which is created when retrieving the binary data. Depending on whether FilePath contains a valid filename or only a path, RetrieveBLOB stores the data using either the FilePath parameter or the original filename (which is contained in Data[DBEntry].Name). Thus you can retrieve the BLOB using its original filename without even knowing it (if the database entry type is gitFileBlob).
Overloaded version  - retrieve to memory structure:
The method RetrieveBLOB retrieves binary data from the database and copies it to the data structure referred to by PBLOBData. SizeOfBLOBData specifies the size of this data structure.
Overloaded version  - retrieve to memory stream:
This version of RetrieveBLOB retrieves the BLOB data and copies it into the stream BlobStream. Any previous data in the variable BlobStream is overwritten.