read Blob(firebird) in a DBRichViewEdit

General TRichView support forum. Please post your questions here
Post Reply
lincolnasilva
Posts: 1
Joined: Thu Dec 10, 2020 1:31 pm

read Blob(firebird) in a DBRichViewEdit

Post by lincolnasilva »

god morning,
i need read a field build in a TRichView
and posted in a field blob of Firebird
this is a value what i see:

-8 1 3
-7 0 -1 0 0 0 0 536870911
-9 2 0 0 2 0 1

Î

how to i configure DBRichViewEdit to read this value(this value is a text with multiple lines)!
im using delphi xe8 and trichview 18.6.

sorry for my ingles!!
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: read Blob(firebird) in a DBRichViewEdit

Post by Sergey Tkachenko »

This is a beginning of RVF content. When DBRichViewEdit fails to read RVF and RTF, it loads field content as a plain text.

If TDBRichViewEdit cannot read it as RVF, two main reasons are possible:

1) This content is damaged. It is possible if this field is a memo field that can store text but cannot store binary document.
RVF requires a field that is able to store arbitrary binary data.

2) Collections of text and paragraph styles are not stored in this document
(they are stored if rvfoSaveTextStyles and rvfoSaveParaStyles are included in RVFOptions of the editor star saved this RVF).
Content of RVF document contains indexes of text and paragraph styles. If styles are not saved in RVF, it can be loaded correctly only in the editor that has the same collection of styles.

To to include rvfoConvUnknownStylesToZero in RVFOptions of TDBRichViewEdit.
With this mode, all erroneous style indexes are loaded as zeros.
Can it display this document now?
Post Reply