简体   繁体   中英

how to access database without webservice?

我正在开发iphone应用程序,需要访问服务器上安装的Oracle / SQL数据库,并且我不想开发用于读取/写入数据的Web服务,是否还有其他方法可以访问数据库?

Connecting to a remote DB directly from an iPhone/iPad App is a very bad idea. Imagine someone with a jailbroken iPhone and a simple packet sniffer.... It would be incredibly easy to compromise the security of your Database.

The best way to acomplish this is to wrap it in php via a web server on your remote Database server. You can then run a query on the DB with a simple http POST request and have the page return xml/json/whatever.


You could look through CocoaMySQL-src for some other ideas though. I think the project is dead/no longer active, but the code might still be useful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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