public void sendfile(String localPath, String remotePath) { FileStream fs = new FileStream(localPath, FileMode.Open); byte[] buf = new byte[fs.Length]; fs.Read(buf, 0, buf.Length); fs.Close(); _ntrClient.sendSaveFilePacket(remotePath, buf); }