iphone - Can I connect to a remote sqlite binary dump file? -


i try connect remote sqlite file , when try open file error:

if (sqlite3_open([databasepath utf8string], &database) == sqlite_ok) {  ...  }else {     // though open failed, call close clean resources.     sqlite3_close(database);     nsassert1(0, @"failed open database message '%s'.", sqlite3_errmsg(database));     // additional error handling, appropriate... } 

when try output database path, gives correct url ( it's local network setup , app connects static ip, searching binary sqlite dump )

2010-04-27 12:47:43.017 bbc_v1[4904:207] loading db path: http://192.168.2.10:8888/bbc.sqlite

tested , file exists..

is possible connect remote sqlite file? or possible when it's inside app bundle?

greets, thomas

sqlite3_open take file name, not url.

i don't think sqlite provide remote access explicitly designed embedded use.

you should download file , save on device, open it.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -