简体   繁体   English

Flex Web应用程序可以访问sqlite数据库吗?

[英]Can a flex web app access a sqlite database?

I'm making an application (web based) using flex and i have a requirment to access the SQLite database on the local system. 我正在使用flex制作一个应用程序(基于Web),并且我需要访问本地系统上的SQLite数据库。 There is no server running and i've decided to give them the link to the html file and see how that works out. 没有服务器在运行,我已决定为他们提供html文件的链接,并查看其工作原理。

So in the root directory, there will be all required swf, html files, etc and a .db file. 因此,在根目录中,将包含所有必需的swf,html文件等以及一个.db文件。 Can i access that database thro the flex web application ? 我可以通过flex web应用程序访问该数据库吗?

Please help. 请帮忙。

可以。Flex可以通过Air SDK访问SQLite数据库,但是从浏览器沙箱/ SDK运行时,您很不走运。

If you don't like to use AIR SDK, You can do that by Java applet. 如果您不想使用AIR SDK,可以通过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. 您可以在Flex页面上调用Web页面上所需的JavaScript函数集合,他们将调用Java applet函数来处理SQLite而不是使用HTTP服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM