My duty was to make it possible for an android app to send a file to a server via SFTP protocol. Well, I had really big troubles to succeed in this. I could not find good documentation or example about it , indeed.
Then I ended up with learning a library called JSCH . I started to apply it for my application but I got really big difficulties with running it. I had many many problems. Long story short, here is a neat example of JSCH library for ANDROID, which helped me very well and I was able to upload a .txt file from my android phone to the server by SFTP. YES ! I am smiling now in the middle of the night...:)
Link :
http://timarcher.com/blog/2007/04/sending-files-via-ftp-from-your-java-applications-part-2-of-2-using-jsch-for-sftp/
Many Thanks and Regards to Timothy !
No comments:
Post a Comment