GraphiC allows you to send its high-resolution TKF files over the Web to anyone who has a copy of PLAY. This mode of operation has several advantages:
open FILE, "sample.tkf"; seek FILE, 0, 2; $size = tell FILE; seek FILE, 0, 0; $header = <<END; Content-type: image/x-tkf Content-length: $size
syswrite( STDOUT, $header, length($header) ); sysread( FILE, $data, $size ); syswrite( STDOUT, $data, $size );
close FILE;This file should be placed in your Server's cgi-bin or scripts directory.
Next, you must add the new Mime type to both your Web Server and Browser.
The type is image/x-tkf.
For example, in your Netscape Communicator Browser under the View, Preferences popup, select under Navigator Applications, New Type
Fill in the following information:
Extension TKF MIME Type: image/x-tkf Handled By Application: <full path to PLAY.EXE> %sBe sure to change the executable to match that installed on your system, e.g., PLAYWNT.EXT on NT or Windows '95.
Finally, you must add a matching Mime Type on your Web Server.
For example, in the Microsoft Personal Web Server (4.0), in the Microsoft Management Console, right click on the computer name under the IIS folder, and open the Properties popup. Select the File Types... button.
Under New Type..., fill in the Associated Extension .tkf and the Content Type image/x-tkf.
Finally, you need to have a copy of perl running
on your web server.