Samir, There are really no differences between stand-alone and embedded versions. These are just two different ways to configure/start the server. In either case, I believe you have to provide your own implementation of STOR command. You pretty much have to copy the current code in org.apache.ftpserver.command.impl.STOR class and change the part where it writes the received data to the file. You can then use the CommandFactoryFactory to configure the server so it uses your new implementation of the command rather than the default.
Hope this helps. Sai Pullabhotla www.jMethods.com On Thu, May 28, 2009 at 2:51 PM, Samir Faci <[email protected]> wrote: > I have a basic embedded ftp server working just fine, user auth, uploading > and downloading works fine (Based on the > http://mina.apache.org/ftpserver/embedding-ftpserver-in-5-minutes.html) . > I'd like to capture the upload within my java code rather then have it > upload to a directory, I want to capture the upload as a byte stream of some > form and have my application process it rather then writing to disk. > > Is that feasible using the embedded version? I believe it can be done > using the stand-alone implementation. > > -- > Samir > > >
