EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Does anyone have an ASP.NET SimpleSFTPClient Download Sample???

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#17859
Posted: 10/13/2011 09:36:55
by Vincent Mayfield (Standard support level)
Joined: 08/04/2008
Posts: 3

We are working on an ASP.NET application an cannot get the file download to work. The only samples that Eldos have are for the upload process. Has anyone created anything like this using SimpleSFTPClient that could point us in the right direction?
#17860
Posted: 10/13/2011 09:40:30
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Could you please describe what exact problems are you facing with files download.
#17861
Posted: 10/13/2011 10:05:15
by Vincent Mayfield (Standard support level)
Joined: 08/04/2008
Posts: 3

This is an ASP.NET web application that we are using SimpleSFTPClient on. We are using UploadStream to perform the file uploads and that is working properly. When we tried to use DownloadStream to download the files to the client we are having issues creating the stream. When we try to create a FileStream object we cannot determine the exact absolute file location. The SimpleSFTPClient only will give us the absolute path based on the login credentials. For example the user's folder is located at D:\Fodler1\Folder2\Folder3\Username\UserFolder\File.txt but the BlackBox will only give us \UserFolder\File.txt as the path. Are we looking at this wrong based on how BlackBox works? The web application is located on the FTP server. So using DownloadFile simply moved the file around on the server and we need to be able to allow the user to download the file through the web application. Thanks for any help you can provide.
#17862
Posted: 10/13/2011 10:11:40
by Vincent Mayfield (Standard support level)
Joined: 08/04/2008
Posts: 3

Also additionally we can make this work by not using BlackBox and using Page.Response and hard coding a specific file location in testing.
#17866
Posted: 10/13/2011 10:28:44
by Vsevolod Ievgiienko (EldoS Corp.)

This is a normal behavior because the application uses local server paths. You should download a file from the SFTP server to a temporary path on the server and then return its content to user using, for an instance, Page.Response.
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.

Reply

Statistics

Topic viewed 1221 times

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




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!