Generate file in web app
- How-to
- Cecilia Jiménez Bedoya
- PowerServer 2020 or older (Obsolete)
- Monday, 21 January 2019 01:54 PM UTC
Hello!
I am making a web app, when I click a button I get through a webservice a string with the data of a pdf encoded in base 64.
To be able to show it in the web browser I have to generate the pdf file.
I would like this file to be saved in a web server folder but I do not know how to write to the server with the powerserver.
Another option that I have tried has been generate the file by this way:
ls_file = AppeonGetCacheDir () + '\ plugin \ temp_file_name
li_file = FileOpen (ls_file, StreamMode !, Write !, LockWrite !, Replace!) but this always returns -1.
Could someone tell me why this is failing. And even better, could someone tell me if I can access a server folder and generate the file there.
Thank you very much again!!
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.