Question

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..

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top