SqlAnywhere doesn't have a mature server-side web application framework, such as ASP / JSP / many_of_them. Everything what it does, it listens an HTTP/HTTPS port and gives you SQL procedure that can generate any output (e.g. read something from a file system / DB file, and send it to the client).
This is what Foxhound does under the hood, if I am not mistaken. here or here. That's it. Nothing more, nothing less.
So, the summary, if you want to have the file and return it as a response, yes, you can do this, but there is no any web framework that you can use, no templates, no architecture, nothing. Like PHP, but without libraries and withing the DB.
SqlAnywhere doesn't have a mature server-side web application framework, such as ASP / JSP / many_of_them. Everything what it does, it listens an HTTP/HTTPS port and gives you SQL procedure that can generate any output (e.g. read something from a file system / DB file, and send it to the client).
The best thing you can use is to create pages dynamically (something like here: https://help.sap.com/viewer/98ad9ec940e2465695685d98e308dff5/17.0/en-US/3bd432396c5f10148782bc977a956885.html )
This is what Foxhound does under the hood, if I am not mistaken. here or here. That's it. Nothing more, nothing less.
So, the summary, if you want to have the file and return it as a response, yes, you can do this, but there is no any web framework that you can use, no templates, no architecture, nothing. Like PHP, but without libraries and withing the DB.