I wish it were that easy for me. I have tried to modify the content-type though as follows:
pure html:
Code:
<html>
<head>
<meta http-equiv="content-type" content="application/pdf">
<title>Doc Image Example</title>
</head>
<body>
[img]6.tst[/img]
</body>
</html>
pure php:
Code:
<?php
header("Content-type: application/pdf"); //also tried: header("Content-type: application/pdf";);
//and header("Content-type: application/pdf"; charset=utf-8);
$filename = "6.tst" ;
$dataFile = fopen( $filename, "r" ) ;
if ( $dataFile )
{
while (!feof($dataFile))
{
$buffer = fgets($dataFile, 4096);
echo $buffer;
}
fclose($dataFile);
}
else
{
die( "fopen failed for $filename" ) ;
}
?>
the real problem is not getting the tst extension to open as a jpg but rather getting it to open as a tif. I can open it based on the original file name using RnOS ezpdf as a pdf file, but I haven't figured out a way to open the tif files in a web browser.