Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.1k views
in Java FTP by (160 points)
Hi,
when I try to put an image on server using

ftp.put(inputStream, imageName);


where ftp is an active FTPClient object and imageName does not include ".jpg" extension only 1 kb of the image is copied , and appears as a chunk of bytes when double clicked.

2 Answers

0 votes
by (162k points)
Please post a bit more code. Make sure you are transferring in binary mode.
0 votes
by (160 points)
It worked, there was a problem in implementation.
Thanks for the response

Categories

...