file-transfer

What is the maximum file size I can transfer using HTTP? And using FTP?

纵饮孤独 提交于 2019-11-27 17:17:56
问题 Added : I am conducting a study for a new system we're going to develop in my work. It consists in authenticating users, displaying what files they want to download and downloading them. Also, if the files are not readily available, the user can't download them, but the server obtains a copy of the requested file and notifies the user by mail when he can get the file. We expect files to be tipically from 2 to 50 gigabytes in size, for now. I just want to check if it's possible to write a Web

Background Intelligent Transfer Service In C#

余生颓废 提交于 2019-11-27 16:47:01
问题 Anyone successfully using this in c# or is there a better alternative to this? Also any good working project that I can look at and get a good feel? most projects i have come across is in C++ and was looking for a C# project 回答1: Yes, we're using it in a tool to let customers upload logs, dumps, etc. to our customer support department. You could use it directly via PInvoke/COMInterop, but I suggest to have a look at SharpBITS.NET, which wraps the BITS interface nicely. 回答2: I'm the PM for the

FileTransfer using XmppFrameWork in ios

纵然是瞬间 提交于 2019-11-27 13:45:11
i have implemented some code of file transfer by using this tutorial : Please Click Here. and the code which i am using : - (void)sendToOtherDevice:(NSData *)fileData receiverJid:(NSString *)receiverJid { XMPPJID *jid = [XMPPJID jidWithString:receiverJid]; XMPPSIFileTransfer *sifiletransfer = [[XMPPSIFileTransfer alloc] init]; [sifiletransfer initiateFileTransferTo:jid withData:fileData]; NSString *s = [NSString stringWithFormat:@"%@/spark",receiverJid]; NSString *jabbarID = [[[[self appDelegate] xmppStream] myJID] bare]; XMPPJID *senderjid = [XMPPJID jidWithString:jabbarID]; //[TURNSocket

SFTP file transfer using Java JSch

こ雲淡風輕ζ 提交于 2019-11-27 06:55:00
Here is my code, which retrieves content of the file, on the remote server and display as output. package sshexample; import com.jcraft.jsch.*; import java.io.*; public class SSHexample { public static void main(String[] args) { String user = "user"; String password = "password"; String host = "192.168.100.103"; int port=22; String remoteFile="sample.txt"; try { JSch jsch = new JSch(); Session session = jsch.getSession(user, host, port); session.setPassword(password); session.setConfig("StrictHostKeyChecking", "no"); System.out.println("Establishing Connection..."); session.connect(); System

scp from Linux to Windows

元气小坏坏 提交于 2019-11-27 05:01:41
问题 I am running a putty client on a Windows machine to connect successfully to a Linux box. Now I want to be able to copy a file from the Linux machine under the path /home/ubuntu/myfile to C:/Users/Anshul/Desktop on my local computer. The user at the Windows machine is anshul . I am giving the following command on putty but it is not working: scp /home/ubuntu/myfile ip_address_of_windows_machine:C:/Users/Anshul/Desktop I think the path for the Windows machine is wrong. Please help as I have

PHP - determine how many bytes sent over http

让人想犯罪 __ 提交于 2019-11-27 04:04:41
问题 Is it possible in PHP to get a count of the number of bytes transmitted to the client? For example, if I'm outputting a 10 MB file, is there a way to find out if all 10 MB were sent to the client, or to see if the client interrupted the transfer partway? I know Apache will log this afterwards, but I'd like to access the data in PHP. 回答1: Take a look at the ignore_user_abort and connection_abort function. 回答2: Here's what I ended up doing (thanks Gumbo): ignore_user_abort(true); $handle =

FTP client server model for file transfer in Java

…衆ロ難τιáo~ 提交于 2019-11-27 03:41:20
问题 Well, I am trying to implement the ftp server and ftp client in Java. I am trying to receive a file from server. Following is line of codes. I am able to achieve Connection between server and client, but unable to send filename to server also. Well can anyone guide me whether this approach is correct or if not, please suggest proper changes. Server's Implementation: import java.net.*; import java.io.*; class MyServer { ServerSocket ss; Socket clientsocket; BufferedReader fromclient;

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

徘徊边缘 提交于 2019-11-27 00:40:33
I want to develop application that sends image/txt or any file from one android device to another none android device using Bluetooth. Please anyone can give help or source code for that? 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);

Atomic file copy under .NET

萝らか妹 提交于 2019-11-26 21:48:35
问题 I am building a server app that copies files using System.IO.File.Copy(...) function. My files can be rather large, therefore, it has a fair chance that if the machine crashes, it happens during copying. After restarting the service, I should be able to pick up the copy tasks and continue. How can I detect if a copy has been successfully completed or interrupted by server crash? My current plan is to copy the files to a temporary name and once copying completed rename it to the final name.

Comparing HTTP and FTP for transferring files

别等时光非礼了梦想. 提交于 2019-11-26 21:24:36
What are the advantages (or limitations) of one over the other for transferring files over the Internet? (I am aware of secure forms of both protocols. I'd like to hear comparisons through personal experiences in terms of performance, reliability, file size limitations etc.) John Ellinwood Here's a performance comparison of the two. HTTP is more responsive for request-response of small files, but FTP may be better for large files if tuned properly. FTP used to be generally considered faster. FTP requires a control channel and state be maintained besides the TCP state but HTTP does not. There