Download File in CSP
Hi all,
How to download file in CSP ?
Thanks,
Victor M.
Discussion (4)0
Comments
Have a look at the same question:
https://community.intersystems.com/post/upload-and-strore-file
Oh, hang on. You want to download a file in Cache Objectscript within your CSP page? In that case, have a look at the %Net.HTTPRequest documentation here: http://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?PAGE=CLASS&LIBRARY=%25SYS&CLASSNAME=%25Net.HttpRequest
You can use %CSP.StreamServer class. See http://localhost:<your post>/csp/samples/streamserve.csp for a sample showing how to use it.
You now have answers to 3 interpretations of your question, please clarify which one you meant ;) Cheers!