Subject Re: [firebird-support] Debugging BLOB problems
Author Ivan Prenosil
> BLOBDUMP writes files exactly the size of the input file.
> 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.

As far as I can see, if the isc_put_segment is called several times,
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