Simple File download via Web client?

We have distributor updates that need to be accessed.

All the data is in our backend and servoy. Currently, distributors visit our Servoy based Distributor portal, and can save an export manually, with the resulting txt file cached for 24 hrs in a record.

I’ve written an API-type of module that allows for a HASHED id to be sent, generating the file if needed, and then writing it to the users disk. BUT, this will be accessed automatically via their own systems.

What is a good method to serve a file directly from the DB or generated on the fly when a certain servoy webclient URL is visited? The methods in servoy depend on user interaction, and the blobloader requires a further “click”. I’d like to be able to serve up the file directly, rather than a page with a link.

Anyone done this, or should I use headless client and a JSP page (I’m not familiar with JSP (but do some complicated stuff w/ php and perl), but I’m sure I can hack something out - a servoy specific example would be helpful.)

Any direction welcome. I’ve done this easily outside of servoy, but as the updates will be accessed manually and automatically now, we’d like to keep the code all in servoy.

Nolan
FSCI

Headless client for this, no doubt!
Look at the headless_client_demo and dive into java.io and javax.servlet.http packages.