Loading image data from DB

Rob Cozens rcozens at pon.net
Fri Apr 7 12:32:11 EDT 2006


Devin,

> The trick seems to be that you upload and download the image data as 
> *text* (as opposed to the imageData of the image, which is binary.) I 
> may have this all wrong conceptually, but that's how it finally made 
> sense to me.

An image's "Text" property is  binary data that comprises the image.  
The problem arises because, until one reads the Dictionary, one might 
easily assume an image's Text property contains text, just like a 
field.

So, just as one might...

	get URL (("file:"&textFileName))
	put it into field "Main Text"

one should be able to (untested)

	get URL (("binfile:"&imageFileName))
	put it into image "Main Image"


Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)




More information about the use-livecode mailing list