Subject | Re: [firebird-support] Is it save to append some data at end of the binary firebird database fil e? |
---|---|
Author | Mark Rotteveel |
Post date | 2015-12-04T12:05:11Z |
Van: "Fabiano Kureck fabiano@... [firebird-support]" <firebird-support@yahoogroups.com>
Aan: <firebird-support@yahoogroups.com>
Onderwerp: [firebird-support] Is it save to append some data at end of the binary firebird database file?
Datum: vr, dec. 4, 2015 11:08
What you can do is inspect Firebird structure and search for an unused area.
Documentation about this can be found at
http://www.firebirdsql.org/manual/fb-internals.html
By example if you check
http://www.firebirdsql.org/manual/fbint-standard-header.html
Pag_checksum: Two bytes, unsigned. Bytes 0x02 - 0x03. Checksum for the whole page. No longer used, always 12345, 0x3039. Databases using ODS8 on Windows NT do have a valid checksum here.
You can use this safely (?)
Mark Rotteveel wrote:
> On Windows, all files can have alternative streams with additional
> data. It is a form of hidden metadata that is attached to the main filename.
True, but the alternate data streams get lost when the file is stored
on a non-NTFS drive, sent via FTP/E-Mail etc. So depending on how the
software of the OP is released, this might not work well.
Anyway, rereading the original post, I realized that he is looking for
a platform independent solution, so my focus on Windows did not help
anyway.
Cheers,
Christian
--