Subject | Re: [firebird-support] Debugging BLOB problems |
---|---|
Author | Ivan Prenosil |
Post date | 2005-08-26T07:51:07Z |
> BLOBDUMP writes files exactly the size of the input file.As far as I can see, if the isc_put_segment is called several times,
> At the first glance, these files look truncated, anyway. Closer investigation
> reveals that the contents of this file re-start from the very beginning at
> offset 0x7fff.
you still pass pointer to start of data buffer.
| while (i < ba.size()) {
| isc_put_segment(status, &handle, qMin(ba.size() - i, SHRT_MAX),
| const_cast<char*>(ba.data()));
| if (isError(QT_TRANSLATE_NOOP("QIBaseResult", "Unable to write BLOB")))
| return false;
| i += SHRT_MAX;
| }
Ivan