Page 1 of 1
Insert any binary file into richviewedit...
Posted: Fri May 19, 2006 11:03 pm
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.
Posted: Sun May 21, 2006 10:37 am
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)