Insert any binary file into richviewedit...

General TRichView support forum. Please post your questions here
Post Reply
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Insert any binary file into richviewedit...

Post by Marsianin »

Is there a way to insert any binary file (like .zip) into RVF and show only icon of inserted file with possibility to save this file back to disk ?
And inserted file must be saved inside RVF.
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You should do it yourself. Create an icon-picture item and store the file in its tag.
Tag strings cannot contain arbitrary binary content (#0, #10 and #13 characters must not occur). So you must encode it somehow. For example, use hexadecomal encoding (each byte is saved as a hexadecimal digit (2 characters)), or base64 (less size)
Post Reply