Arrays in Rev

Mark Brownell gizmotron at earthlink.net
Sun Jul 11 18:23:19 EDT 2004


on 7/11/04 2:57 PM, Troy Rollins at troy at rpsystems.net wrote:

> I'd love to have that kind of rapid list handling and
> imageData-to-screen capacity in Rev.

You do. I've been running experiments with image data compressed and then
base64ed into a var that is stored within tag sets that include image name,
height, and width.

Like this:

<mtmlImage name="Roscoe's face">
  <imheight>540</imheight>
  <imWidth>300</imWidth>
  <imData>base64 text here</imData>
</mtmlImage>

The pull-parsers handle this like a breeze. The pages that will receive this
image are stored in <page> </page> tag sets where I include this tag to tell
me that the image is embedded in the markup document:

<embeddedImage name="Roscoe's face"></embeddedImage>

This, in a page, tells me to load the image data into an existing image and
name it so that HTMLText can display it with <img src="Roscoe's face"></img>

So far image extraction and image restoration have gone fine in testing. I'm
working on HTMLText implementation in fields right now. If that works, and
I'll bet it does, then it should work for you as "imageData-to-screen."

I'll bet there is an easy way to create a new image or paint object, name it
and dump this imagedata into it. I have not found the secret word in the
docs to get going on this in my three seconds of looking. Any clues welcome?

Mark



More information about the use-livecode mailing list