Set image/data/source via an image on web?
Klaus on-rev
klaus at major.on-rev.com
Thu Jul 14 06:49:56 EDT 2011
Hi John,
Am 14.07.2011 um 07:08 schrieb J. Landman Gay:
> On 7/13/11 11:53 PM, John Patten wrote:
>> Hi All...
>>
>> I have a script where I'm creating a number of image objects on the
>> fly and then attempting to set them to jpg on a web server.
>> Something like:
>> put URL "http://webserver.on-rev.com/conference/images/"& (line x
>> of tBadgeList)& ".jpg" into tImageData
>> put tImageData into last image
>> ...
>>
>> It appears to create the correct target file
>> "http://webserver.on-rev.com/conference/images/11.jpg"
>>
>> Anybody have a tip on how to go about doing this?
>
> Don't use imagedata, just put the image itself, or alternately use "the text" of the image. Either of these should work:
> put URL "http://webserver.on-rev.com/conference/images/"& (line x of tBadgeList)& ".jpg" into last image
> put the text of URL "http://webserver.on-rev.com/conference/images/"& (line x of tBadgeList)& ".jpg" into last image
or just set "the filename" with a one-liner:
...
set the filename of last img to ("http://webserver.on-rev.com/conference/images/"& (line x of tBadgeList) & ".jpg")
...
Best
Klaus
--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com
More information about the use-livecode
mailing list