Salve a tutti,

sto scrivendo un applet che si collega ad una servlet per l'invio di un file.
Nell'applet ho il seguente codice :

codice:
// Connessione alla Servlet
url = new URL(urlShp);
connectionShp = (HttpURLConnection)url.openConnection();
connectionShp.setDoOutput(true);
connectionShp.setDoInput(true);
connectionShp.setUseCaches(false);
connectionShp.setRequestMethod("POST");
connectionShp.connect();

...

// Scrittura file
outShp = new DataOutputStream(connectionShp.getOutputStream());
outShp.writeInt(shpSize);
outShp.write(shpArray, 0, shpSize);
outShp.flush();	
outShp.close();
Mentre nella servlet:
codice:
// nel metodo doPost
int dataLength = in.readInt();
byte dataBytes[] = new byte[dataLength];
int byteRead = 0;
int totalBytesRead = 0;
String saveFile = "C:\\file";
fileOut = new FileOutputStream(saveFile);
while (totalBytesRead < dataLength) {
	byteRead = in.read(dataBytes, totalBytesRead, dataLength);
	fileOut.write(dataBytes,totalBytesRead, byteRead);
	fileOut.flush();
	totalBytesRead += byteRead;
}
fileOut.flush();
fileOut.close();
Nel momento in cui utilizzo Firefox oppure Opera per avviare l'applet, funziona tutto...quando utilizzo iexplorer il file non viene scritto.
Ho provato a modificare le impostazioni di protezione di iexplorer, ma il risultato non cambia.
Qualcuno mi può dare uno spunto di riflessione?