On 2019-12-23 15:08, Norbert Saint Georges wrote:
Alex Peshkoff via Firebird-devel a écrit :
On 2019-12-12 11:29, Norbert Saint Georges wrote:
Hello everyone,

for the procedures IUtil_loadBlobPtr & iUtil_dumpBlobPtr  what type of
field is provided? BFile ??

May be I do not understand your question.
Apologies, I badly speak in English.

I'm also not native Enlish speaker...


In Firebird.pas, there are two procedures:

1) IUtil_loadBlobPtr = procedure (this: IUtil; status: IStatus; blobId: 
ISC_QUADPtr; att: IAttachment; tra: ITransaction; file_: PAnsiChar; txt: 
Boolean); cdecl;

2) IUtil_dumpBlobPtr = procedure (this: IUtil; status: IStatus; blobId: 
ISC_QUADPtr; att: IAttachment; tra: ITransaction; file_: PAnsiChar; txt: 
Boolean); cdecl;

Having a "file_: PAnsiChar" parameter and another "txt: boolean" which suggests 
that there are plans to load and unload files external to Firebird.

My question was: Is there a type "external_File" for example: SQL_BFile = 32767 
which would be missing in the Firebird.pas file?
Or if not, what is it used for?


Methods loadBlob/dumpBlob of Util interface (what you mention are not procedures, just pascal analogue of C typedef) are used at client side (certainly embedded case works too) to manipulate blobs - load data from file to blob or store blob data in a file. Parameter "file_: PAnsiChar" is a name of that file.  Boolean txt defines should binary or text more be used when working with that file. And yes - that files are sooner of all "external to Firebird".

This methids have nothing to do with SQL data types, therefore nothing like SQL_BFile is present.




Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to