Can anyone tell me, from the code snippet below, what the encoding type
would be for the Object[] below being sent via ans ObjectOutputStream to an
HttpServlet.service? Thanks, Ike
URLConnection uc = servletURL.openConnection();
uc.setDoOutput(true);
uc.setDoInput(true);
uc.setUseCaches(false);
uc.setRequestProperty(I18N.rb.getString("Contenttype"),"application/octet-stream");
ObjectOutputStream objOut = new
ObjectOutputStream(uc.getOutputStream());
int sz=5;
if(psObs!=null)
sz+=psObs.size()+1;
Object conArray[] = new Object[sz];
conArray[0] = null;//driverField;
conArray[1] = null;//urlField;
conArray[2] = null;//userField;
conArray[3] = "0";
conArray[4] = sqlField;
if(sqlField.indexOf("?")>-1 && psObtypes!=null &&
psObtypes.size()>0){//this is a prepared statement
conArray[5]=psObtypes;
for(int t=0;t<psObs.size();t++){
//System.out.println(psObtypes.get(t));
conArray[6+t]=psObs.get(t);
}
}
objOut.writeObject(conArray);
objOut.flush();
objOut.close();
try{
// get objects from servlet (1. message-string, 2.
headers 3.resultset-vector)
getObjectsFromServlet(uc);
}catch (Exception gotophp){
}
Ike - 16 Jun 2006 13:50 GMT
Its 64 bit encoded, then wrapped in UTF-8
//Ike