Read GIF files from TINI

"Gert Dam" <gdam-qWit8jRvyhVmR6Xm/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <000101c3f0b5$24b3b610$9700000a@GERT>
I'm working on an applet which requires GIF files.

On the TINI, TiniHttpServer is running. The GIF files are located in the
"docs/" directory.

The code to get these files is as follows:

icons = new ImageIcon[5];
String root = "docs/";
try
{
icons[0] = new ImageIcon(new URL(getCodeBase(),root+"alert.gif"));
icons[1] = new ImageIcon(new URL(getCodeBase(),root+"lightbulb.gif"));
icons[2] = new ImageIcon(new
URL(getCodeBase(),root+"checkBoxEmpty.gif"));
icons[3] = new ImageIcon(new
URL(getCodeBase(),root+"checkBoxChecked.gif"));
icons[4] = new ImageIcon(new URL(getCodeBase(),root+"check.gif"));
//debug
System.out.println(getCodeBase()+root+"check.gif");
int status = icons[0].getImageLoadStatus();
if(status==MediaTracker.ABORTED)
System.out.println("ABORTED");
if(status==MediaTracker.COMPLETE)
System.out.println("COMPLETE");
if(status==MediaTracker.ERRORED)
System.out.println("ERRORED");
if(status==MediaTracker.LOADING)
System.out.println("LOADING");

The Output screen shows: http://192.168.0.121/docs/check.gif which is OK

But, the status (MediaTracker) is still ERRORED

How can I grab GIF files from TINI in an APPLET using TiniHttpServer?

Thanks for the response!

Gert Dam



_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.