I'm just wondering... It is possible to method to use sftp protocol with httpcomponent apache lib to upload files with multiparting?

I could not find any lessons so it might be greate you to definitely share some code clips for the reason that direction...

Any helpful surveys are appreciated

Short answer - no, you can't use HttpComponent to upload files using SFTP. HTTP and SFTP are hugely different. SFTP is a true protocol by itself unlike FTP, it's basically a subsystem inside a SSH2 server.

If you want to transfer files via SFTP, use a SSH library that supports the SFTP subsystem. If you wish to make use of an Apache library, use Apache VFS as indicated in one of the answers.