Subject Re: [Firebird-Architect] Re: C API Upgrade?
Author Alex Peshkov
On Thursday 31 January 2008 17:49, Adriano dos Santos Fernandes wrote:
> Alex Peshkov wrote:
> >> The API itself may call others API functions that go to the server to do
> >> things. Example:
> >> getString(blob) -> getBlobId(), openBlob(), readBlob(), closeBlob()
> >
> > Certainly. But please explain, what to do if jpeg is stored in blob?
>
> There is two alternatives (we may have both, with getString() and
> getData()):
> 1) getString() converts the blob to text via blob filters - if the user
> has a filter from JPEG->text, this is what he expect :-), otherwise he
> is not going to call this function
> 2) getData() returns the blob raw bytes

Well, in that case we need to have not only getString() / getData(), but also
getInt(), getDouble(), etc. This already starts to look as a suggestion about
extending existing API, is not it?