Can Servoy saved files be stored only on the server?

Hi Everyone

I am sure this is covered somewhere in the documentation or examples, but I thought I might ask the quick question here first.

I need my solution to store large (up to ~ 10MB JPG) image files and have decided NOT to use blobs for it. My question is, is it possible programatically to get servoy to store files in an otherwise inaccessible directory on the Servoy server (in this case Mac OS X)?

My plan is to have a button on a form in Servoy client which allows clients to select local files to be stored in Servoy. These files will then be stored in a folder on the Servoy server without the client having had filesystem access to the server (i.e. I want people to press a button, choose a file and know that it is stored on the Server without having had to connect to the server via smb or afp). Servoy will then generate a thumbnail of the image and provide a mechanism to delete or retrieve the original big picture.

Possible?

Thanks

Bevil

Hi all

Back in 2005 when I asked this question, it turned out that blobs was the best way and the solution has been working fine since then. Marvellous.

I am revisiting this question now though because I am setting up a web cms which needs to save images to a folder on the apache/mysql/php server in an /images/ folder. Servoy uses the mysql database to handle the cms, and apache serves the mysql database via php to the web - it all works perfectly. What I would like to do via a remote client is choose images from the remote client’s desktop, save to the servoy server, and have Servoy put the images into a SERVER folder (the images folder) which apache can serve.

Is it possible to do this? It is very similar to my original question.

Thanks for any help

Bevil

Hello, is there a reason why you would not use the datastream plugin for that?

Put a batch processor on the server to check the table of images for items that have been newly “flagged” by someone via Servoy client. Save those images to your file system then flag them as posted.

there are other options:

Make a server plugin where you call a method on from a client which transfers the jpg file and you save it in your server plugin

Make a servlet in java that you register in tomcat on the server and use the http plugin to do a post to your server. And save the file in your servlet code.