Lupita Noyra
Lupita Noyra

Reputation: 221

Show an image on web page using livecode

I just created a page to show an image using livecode. I created an the image path first, with this code:

put "localhost/windy.png" into iconPath

And then, show the image with this code:

put url("binfile:" & iconPath)

But, gives blank page..

Need your help..

Upvotes: 2

Views: 253

Answers (1)

splash21
splash21

Reputation: 809

here's a working example (url = http://splash21.on-rev.com/test.lc)

Contents of the .lc file as follows ...

<?lc
put header("Content-type:image/png")
put URL("binfile:img/robot.png")

the image is in the 'img' folder relative to the .lc script

Upvotes: 3

Related Questions