I am using a TFTPClient example to copy a file from local disk and create a file on tftp server with a new name but same contents I am sending the input stream to
tftpClient.sendFile(String filename, int mode, InputStream input,
InetAddress host, int port) method
the file with fileName
is getting created on the server but with size 0.
Some more things:
- I have setup tftp server on windows8 64 bit
- able to put the file on tftp server from cmd
- I have TFTP Client enabled
- I have turned off firewall
- and I have read the lines of input stream and it actually contains data.
Please suggest a solution.