Hi Ankur
I don't think it would be possible to transfer the file "as a whole" and not using streams.
One or the otherway streams will be used because its after all "network" which does only understand stream of bits
Now, probably, you can read the whole file and put it in Byte array and then transfer that byte array as an ObjectOutputStream or something once you open a connection to the server and then get the output stream from the communication socket. By this I mean,
Socket s;
byte[] fileBytes;
ObjectOutputStream oos = new ObjectOutputStream(s.getOutputStream());
oos.write(fileBytes);
oos.close();
assuming you have proper Socket created and read the file in fileBytes array.
Btw, why you want to avoid streams?
Regards
Maulin