Subject | Re: [Firebird-Architect] Re: C API Upgrade? |
---|---|
Author | Alex Peshkov |
Post date | 2008-01-31T14:57:10Z |
On Thursday 31 January 2008 17:49, Adriano dos Santos Fernandes wrote:
getInt(), getDouble(), etc. This already starts to look as a suggestion about
extending existing API, is not it?
> Alex Peshkov wrote:Well, in that case we need to have not only getString() / getData(), but also
> >> 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
getInt(), getDouble(), etc. This already starts to look as a suggestion about
extending existing API, is not it?