Thanks Gautham,
I've already checked out those links. I'm at the point where instead of performing a doPut() method, I am doing the following (still not getting the desired results though)
Within the doPost() method I am messing with the following code...
URL url = new URL(PROTOCOL + "://" + HOSTNAME);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("PUT");
connection.setDoOutput(true);
connection.setDoInput(true);
connection.setUseCaches(false);
connection.connect();
FileInputStream fis = new FileInputStream(new File("C:\\MyStuff\\testWordDoc.doc"));
int noOfBytes = fis.available();
byte b[] = new byte[noOfBytes];
fis.read(b, 0, noOfBytes);
try {
fis.close();
}
catch(Exception e) {}
OutputStream out = connection.getOutputStream();
int code = connection.getResponseCode();
if ((code >= 200) && (code < 300)) {
BufferedOutputStream bos = new BufferedOutputStream(out);
bos.write(b);
bos.flush();
bos.close();
}
out.close();
connection.disconnect();
Thanks so much for your reply though!!!
Mike Cronin
Data On Call