DRIOQ
March 6th, 2000, 05:19 PM
The applet is a gif loader (from an servlet on a secured server) that let you paint over the loaded gif and the save it back on the secured server (the servlet do the job fine). Now I just have to send the encoded gif in the stream (by the http).
My problem is to send the aray of byte encode as a gif by my applet and send it to the servlet...
here is the code that i use:
//---------------------------
GifImageEncoder objGifEncoder = new GifImageEncoder(objImageToSave);
objGifEncoder.indexColors();
URL tmpURL = new URL("132.203.52.203/graph/graph.DRIOQ_Graph");
HttpURLConnection objConnection = new HttpImpl(tmpURL);
objConnection.setDoInput(false);
objConnection.setDoOutput(true);
OutputStream out = objConnection.getOutputStream();
objConnection.connect();
objGifEncoder.encodeTo(out); //HERE IS THE socket write Error !!!
out.flush();
out.close();
//---------------------------
There is an socket write error when i run it...
Please HELP !
here is my E-mail dany_drioq@hotmail.com
My problem is to send the aray of byte encode as a gif by my applet and send it to the servlet...
here is the code that i use:
//---------------------------
GifImageEncoder objGifEncoder = new GifImageEncoder(objImageToSave);
objGifEncoder.indexColors();
URL tmpURL = new URL("132.203.52.203/graph/graph.DRIOQ_Graph");
HttpURLConnection objConnection = new HttpImpl(tmpURL);
objConnection.setDoInput(false);
objConnection.setDoOutput(true);
OutputStream out = objConnection.getOutputStream();
objConnection.connect();
objGifEncoder.encodeTo(out); //HERE IS THE socket write Error !!!
out.flush();
out.close();
//---------------------------
There is an socket write error when i run it...
Please HELP !
here is my E-mail dany_drioq@hotmail.com