Hi,
I'm now using the webscript provide by default. I put the following url in an html <a> tag:
Host/api/node/content/workspace/SpacesStore/{nodeRef}/filename.ext?a=true, and the user can download the file by click the link.
I'm extends the "AbscractWebscript" class to handle the webscript and it can only write JSON response (or I only know this way).
Would you please provide more information of how I can do it via the approaches you mentioned?
Thanks in advance,
Sun