0 votes
by (120 points)

Is it possible with Rebex File Server to create a custom SFTP Server, which is using a database as file source instead of a file system?
Like is it possible overload the download and upload methods to simulate a file system tree but in the backend is everything in a database? We want to implement it like this, because we want to integrate it with our current software and its database, where are the files already located.

Applies to: Rebex SFTP

1 Answer

0 votes
by (5.3k points)
edited by

Hi Max,
thanks for your question and welcome to the Rebex forum.
Yes, the scenario you have described is supported.

Your new database-based file system provider will inherit from the ReadWriteFileSystemProvider abstract class.

Actually, we also have heavily commented samples (unreleased beta) that demonstrate how to create a database provider using the:
1) Entity Framework (EF) 5 Core.
or
2) Entity Framework 6. (for 'old' .NET Framework).

If you are interested, please drop an email to support@rebex.net, and I will send you the link to the sample. Or let me know in a comment that it is OK to send you the link to the email you have in the forum profile.

More info about Rebex virtual file system.

by (120 points)
Hi renestein,

thanks for your quick response.
It would be great if you can send me the sample to the mail i have in my profile.
by (5.3k points)
Hi Max,
please check your mailbox, I have sent the requested samples a few minutes ago.
Happy coding with Rebex components.:)
And if you have other questions, please don't hesitate to contact us.
...