Can a flex web app access a sqlite database?

主宰稳场 提交于 2019-12-25 03:10:58

问题


I'm making an application (web based) using flex and i have a requirment to access the SQLite database on the local system. There is no server running and i've decided to give them the link to the html file and see how that works out.

So in the root directory, there will be all required swf, html files, etc and a .db file. Can i access that database thro the flex web application ?

Please help.


回答1:


No. Flex can access an SQLite database via the Air SDK, but you are out of luck when running from the browser sandbox/SDK.




回答2:


If you don't like to use AIR SDK, You can do that by Java applet. You can make a collection of needed JavaScript functions on the web page to be called by Flex and their will call a Java applets functions to deal with SQLite instead of using HTTP services.



来源:https://stackoverflow.com/questions/4195554/can-a-flex-web-app-access-a-sqlite-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!