CKImage can display resource files as image. Do setting the following to display an image file (cgikit.png) in ImagePage of Examples.
<番号リスト-1->move resourcesdirectory to path enables displaying images.番号リスト-1->
resourceattribute of CKAppication.
<リストタイトル>move resourcesdirectoryリストタイトル>
[localhost:/var/www/cgi-bin/Examples] user% mv resources ../../htdocs
<リストタイトル>set path of resourcesdirectory (Example.cgi)リストタイトル>
app = CKApplication.new app.web_server_resources = '../../htdocs/resources' app.run
<リストタイトル>set an image file name of fileattribute (ImagePage.ckd)リストタイトル>
FileInResource : CKImage {
alt = "File in resource direcory";
file = "cgikit.png";
}
This is an example to display static an image file. CKImage can display dinamically using with dataattribute.