Hello Richard,

Well, I'd like to save the field in RTF with images embeded so other apps could open it. The problem is that I don't know how to add an image to a RTF file. I've played with base64Encode, imageData, etc without result. In fact I have no idea in what format the image has to be encoded to add it at a RTF file.
Do you have some example?

I'll continue to search on the net, but so far I didn't find something usefull.

Thanks, best,

ÉrIC

Le 25 août 07 à 17:33, Richard Gaskin a écrit :

É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
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


-- My NeXT computer will Be a Mac too! --


_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to