EldoS | Feel safer!

Software components for data protection, secure storage and transfer

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

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
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?
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.
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.
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.
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: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.



Topic viewed 1277 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!