Hello- I have successfully been able to use the JAVA Applet to view images and now I am once again trying to get RADSCAPER to work.
I need help toubleshooting the APPLET.PHP file.
RADSCAPER loads, and by hardcoding an image like this:
print "<PARAM NAME=DicomImg1 VALUE=d:/pacsdicom/1.2.840.113619.2.81.290.1023.11554.1.1.20050308.185829>\n";
I can get Radscaper to display the image... So I think my problem must be that I have the server name set incorrectly somewhere or a Path is incorrect.
Does anyone have a suggestion on how to troubleshoot this code from the applet.php?
$count = 0;
foreach ($uids as $uid) {
$result = mysql_query("SELECT path FROM image where uid='$uid';");
$row = mysql_fetch_row($result);
printf ("<PARAM NAME=DicomImg%d VALUE=\"%s\">\n", ++$count, $row[0]);
}
I'm sure it is something simple.... I just can't find the bug.....
Help.
Thanks in advance
Jeff
Need help troubleshooting RADSCAPER
I'm not too familiar with the Radscaper viewer, but I think the code you quoted will not work even for the hard-coded image path, if your browser is not a local browser on the same server, because the path to the raw image file is local, e.g., "d:/pacsdicom/1.2.840.113619.2.81.290.1023.11554.1.1.20050308.185829".
I'd imagine the Radscaper's version of applet.php should be similar to the open-source applet which uses a separate script viewer.php to send the local raw image file to the remote browser:
I think your best bet would be to check with the author of Radscaper applet and see how to display images to remote browsers. I believe they also have a user's forum like this one.
I'd imagine the Radscaper's version of applet.php should be similar to the open-source applet which uses a separate script viewer.php to send the local raw image file to the remote browser:
Code: Select all
function appletViewer(&$uids)
{
$url = "http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);
...
$count = 0;
foreach ($uids as $uid) {
printf ("<PARAM NAME=imgURL%d VALUE=\"$url/viewer.php?uid=%s\">\n", $count, $uid);
$count++;
}
print "<PARAM NAME=NUM VALUE=$count>\n";
print "</APPLET>\n";
}
To load an image from a local path, you have to include the CGI file AppletHelper.exe in your applet clause. Check http://radscaper.divinev.com for more details.