Reputation: 221
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
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