FileTransfer using XmppFrameWork in ios

Note: My XEP-0096 implementation is different from your’s. Any way you created session so just get that ID It may help you: – (BOOL)xmppStream:(XMPPStream *)sender didReceiveIQ:(XMPPIQ *)iq { //**************** Handling the file transfer task *****************// NSLog(@”———- Check if this IQ is for a File Transfer ———-“); NSString *myFileTransferID = YOUR_SESSION_ID_GET_FROM_XEP–0096//[xmppFileTransfer xmppFileTransferResponse:(XMPPIQ *)iq]; if ([myFileTransferID length]>0) … Read more

SFTP file transfer using Java JSch

The most trivial way to upload a file over SFTP with JSch is: JSch jsch = new JSch(); Session session = jsch.getSession(user, host); session.setPassword(password); session.connect(); ChannelSftp sftpChannel = (ChannelSftp) session.openChannel(“sftp”); sftpChannel.connect(); sftpChannel.put(“C:/source/local/path/file.zip”, “/target/remote/path/file.zip”); Similarly for a download: sftpChannel.get(“/source/remote/path/file.zip”, “C:/target/local/path/file.zip”); You may need to deal with UnknownHostKey exception.

How to send file from Android device to other device through Bluetooth by code

Here is the code from which you can send file via bluetooth from android device to any device. btnOk.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { txtContent = (EditText)findViewById(R.id.txtContent); imageView = (ImageView)findViewById(R.id.imageView); linearLayout = (LinearLayout)findViewById(R.id.linearLayout); viewToBeConverted = (TextView) findViewById(R.id.hello); linearLayout.setDrawingCacheEnabled(true); //Toast.makeText(MainActivity.this, file.toString(), Toast.LENGTH_LONG).show(); try { if(file.exists()) { file.delete(); } out = new FileOutputStream(file); } … Read more

Access a Remote Directory from C#

Use this class to authenticate and than just use simple file operations: /// <summary> /// Represents a network connection along with authentication to a network share. /// </summary> public class NetworkConnection : IDisposable { #region Variables /// <summary> /// The full path of the directory. /// </summary> private readonly string _networkName; #endregion #region Constructors /// … Read more