EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Download a file

Also by EldoS Corporation: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#18882
Created: 02/01/2012 05:45:03
by sean rogers (Basic support level)
Registration date: 02/01/2012
Total messages: 5

Hi,

we are using SecureBlackBox 6.0.0.139.

I am trying to download large xml files from our SFTP server using c#.

I started by using DownloadStream approach, but for large files this just hangs.

Could someone show me to an article or explain how to open/read/close a file please. I cant find any samples.(VB.net is fine)

Thanks very much.
#18883
Created: 02/01/2012 05:50:45
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Try to use a sequence of TElSimpleSftpClient.OpenFile/Read/CloseHandle methods.
#18884
Created: 02/01/2012 05:54:32
by sean rogers (Basic support level)
Registration date: 02/01/2012
Total messages: 5

Thanks,

do you have any code examples of the OpenFile/Read/CloseHandle sequence?
#18885
Created: 02/01/2012 06:00:47
by Vsevolod Ievgiienko (EldoS Corp.)

No but we have a good documentation on these methods. Please refer to this page for detailed information: http://www.eldos.com/documentation/sb...lient.html
#18886
Created: 02/01/2012 06:03:37
by Eugene Mayevski (EldoS Corp.)

First of all, you are using very old version of SecureBlackbox. You should be able to get version 6.2 and most likely upgrade to versions 7.x. To do this, you need to assign the license ticket to your user account. The ticket itself and the procedure of it's use are specified in the registration e-mail that was sent to you upon license purchase.

Next, Samples folder includes samples for SFTP and this includes samples for file transfer.

In version 7 or even in 6.x (don't remember now) we introduced methods to download a file in one call (and much faster than using OpenFile/ReadFile/CloseHandle sequence).


Sincerely yours,
Eugene Mayevski
#18888
Created: 02/01/2012 06:28:41
by sean rogers (Basic support level)
Registration date: 02/01/2012
Total messages: 5

Thanks for replying.

This is the version we are Live with, I am just investigating why large files are not being downloaded.

The samples all use DownloadFile or DownloadStream which dont seem to work with files over a certain size.

I was hoping to find an example of how to read a file in chunks.

Thanks
#18889
Created: 02/01/2012 06:44:17
by Vsevolod Ievgiienko (EldoS Corp.)

Try to follow the instructions from this article: http://www.eldos.com/security/articles/4801.php Maybe it will help to solve your problem.
#18890
Created: 02/01/2012 06:46:51
by Eugene Mayevski (EldoS Corp.)

Size doesn't matter for DownloadFile or DownloadStream. The problem must be somewhere else. Try instructions in the article, pointed to by Vsevolod.


Sincerely yours,
Eugene Mayevski
#18891
Created: 02/01/2012 07:14:17
by sean rogers (Basic support level)
Registration date: 02/01/2012
Total messages: 5

Thanks I am going to add the OnError handler and see if that catches anything.
The article also mentions SendKeepAlive() but I cant see this method on the Client, is it somewhere else?

Thanks for your time
#18892
Created: 02/01/2012 07:53:54
by Vsevolod Ievgiienko (EldoS Corp.)

It seems that it is deprecated and removed. Try to make pipelining-related changes.
Also by EldoS Corporation: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.

Reply

Statistics

Topic viewed 1428 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top