putFile method - WeOnlyDo Discussion board

putFile method (wodSFTP / wodSFTP.NET / wodSFTPdll)

by STEVEN, Monday, April 09, 2007, 08:57 (6250 days ago)

I will send a file to remote Server.
The file size is 5.64G.
I used PutFile methods.
when the Position exceeds 2147450880 in Progress even,it changes negative.
Could you tell me why,please?
Thanks.

Re: putFile method

by wodDamir, Monday, April 09, 2007, 09:28 (6250 days ago) @ STEVEN

Hi Steven,

I believe this happens since the Progress Event parametars are assigned as Long variables. You should try using Progress64 Event to convert those values into 64bit ones as described on the following link:

http://www.weonlydo.com/SFTP/Help/wodSFTPLib~wodSFTP~Progress64_EV.html

Hope I helped.

Regards,
Damba

Re: putFile method

by STEVEN, Monday, April 09, 2007, 10:05 (6250 days ago) @ wodDamir

Thanks.I know how to do.
I used PutFile to send a File on the other.
The transfer's speed is 200/s.
It is very slow.
What can method let it fast?
Thanks.

Re: putFile method

by wodDamir, Monday, April 09, 2007, 10:14 (6250 days ago) @ STEVEN

Steven,

The upload speed depends mainly on your connection speed. You could also try adjusting BufferSize Property, or you can let wodSFTP adjust it automatically (set the property to 0).

Regards,
Damba

Re: putFile method

by STEVEN, Monday, April 09, 2007, 11:04 (6250 days ago) @ wodDamir

It is not automatically property in wodSFTP.dll.
How much The maximum of BufferSize Property is?
if BufferSize=32*1024(32K)?
It is right?
Thanks.

Re: putFile method

by wodDamir, Monday, April 09, 2007, 11:44 (6250 days ago) @ STEVEN

Steven,

You're right, i managed to duplicate this. I've already contacted our main programmer on this case. We will inform you as soon as we hear from him as it's holidays here (Easter).

In the meantime, you can try setting BufferSize to Buffersize = 32^3 ... I think 32*1024 won't be allowed by VB.

Regards,
Damba

Re: putFile method

by wodSupport, Tuesday, April 10, 2007, 00:44 (6249 days ago) @ wodDamir

Steven,

you can set it to 32k since SFTP protocol definition will not allow larger packets.

But this cannot be the reason for 200 bytes per second - you could see 10 -20 variation with buffersize changes, but you cannot improve from 200b/s to 200kb/s - I suspect something is wrong with your connection if you get this low values.

By default, wodSFTP uses optimal buffersize and should get fast speed.

Kreso

Re: putFile method

by STEVEN, Tuesday, April 10, 2007, 09:17 (6249 days ago) @ wodSupport

Both AppendFile and PutFile methods initiate the copying of a file from the local computer to the remote server.
What is difference between AppendFile and PutFile methods?
Thanks.

Re: putFile method

by woddrazen, Tuesday, April 10, 2007, 09:32 (6249 days ago) @ STEVEN

Hi Steven,


ApppenFile Method will append at the end of the remote file local file you are uploading . PutFile Method will just upload file from local computer to remote server.

More help for AppenFile Method you can find here:
http://www.weonlydo.com/SFTP/Help/index.html?page=wodSFTPLib~wodSFTP~AppendFile.html

More help for PutFile mEthod you can find here:
http://www.weonlydo.com/SFTP/Help/index.html?page=wodSFTPLib~wodSFTP~PutFile.html

Hope this helps.


Regards,
Drazen