Saving a field containing text and images
Richard Gaskin
ambassador at fourthworld.com
Sat Aug 25 11:33:59 EDT 2007
Éric Miclo wrote:
> I've made some testing by saving the field's htmlText , but after
> that you need to export all the images and it can lead to the
> creation of a huge number of files.
> I'd prefered saving all in a rtf, but here I don't know how to do it.
If you need these files to be opened with other apps, then something
like RTF would be the way to go. Given all the support Rev has built-in
for things like base64, imageData, etc., I would imagine one could write
RTFs with embedded images without much trouble. Of course if you want
these displayable in your app too you'll need to write an RTF parser
than pulls the images back out again when reading.
If yours is the only app that will read these files, you could also
consider saving a stack file as the document.
--
Richard Gaskin
Managing Editor, revJournal
_______________________________________________________
Rev tips, tutorials and more: http://www.revJournal.com
More information about the use-livecode
mailing list