Kenneth are you using JPA or can use JPA? I have this implemented in
JPA and I could send you the files but they are not clean in that they
reference tables in my database, etc. From the files, you could extract
what you need, however. Or probably by Monday, I could have this
cleaned up enough to submit back.
Files are stored in the DB as blobs and I have directory/subdirectory,
list, put, get, and delete all working using Derby as my target database.
Kenneth Vanvik Hansen wrote:
Thanks, got it running. Now i'm trying to make it look for files in a db
table called FTPTEST. But no matter what I do it returns:
Java.io.FileNotFoundException: res\home\kenneth (Access is denied)
I created a file from a blob and returned it in getFile(), but how am I
supposed to make it LIST from the db? All I need atm is the ftp showing
files in a single folder. No dir's needed. Anyone got a good idea how to do
this?
Kenneth
-----Original Message-----
From: Niklas Gustavsson [mailto:[email protected]]
Sent: 19. mars 2010 14:43
To: [email protected]
Subject: Re: LIST from database
On Fri, Mar 19, 2010 at 11:42 AM, David Latorre <[email protected]> wrote:
You should create your own FileSystemFactory and set it in the
DefaultFtpServerContext like this:
context.setFileSystemManager(filesystemFactory);
Or you can set it on the FtpServerFactory. Or, you can configure it as a
bean in the Spring config.
/niklas