Saving a field containing text and images

Éric Miclo eric.miclo at wanadoo.fr
Sat Aug 25 13:30:59 EDT 2007


Le 25 août 07 à 19:17, Phil Jimmieson a écrit :

> Quoting Éric Miclo <eric.miclo at wanadoo.fr>:
>
>> 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.
>
> Hi Éric
> If you find anything useful it'd be good to see it here. In the
> meantime, if you'd like Revolution to be able to save the images in a
> field along with the text when you retrieve the RTFtext of a field,  
> you
> could consider voting for this enhancement request:
>
> http://quality.runrev.com/qacenter/show_bug.cgi?id=4231

Hello Phil,

OK, I did vote for it.
I did also already vote for enhancement concerning the way text is  
handled in fields  (4944) but I'm afraid that we won't see something  
about that for a very long time :-(

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.
>
> I'll have to have a look and see how difficult it would be to write
> something to save an image as RTF. It would be very useful for my  
> major
> Rev project.
>
> --
> Phil Jimmieson
> The University of Liverpool, Computer Science Dept, Ashton Bldg,
> Ashton Street, Liverpool  L69 3BX   0151 795 4236
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at 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! --





More information about the use-livecode mailing list