libimobiledevice-win32 / imobiledevice-net

.NET (C#, VB.NET,...) bindings for libimobiledevice
GNU Lesser General Public License v2.1
297 stars 77 forks source link

Is there a way to open a sqlite file and directly write to it? #169

Open iDanielD opened 3 years ago

iDanielD commented 3 years ago

Hey, Once again I have a question.
Currently I have managed to download the database, edit it according to my wishes and upload it again. Since this is not the best way, I wanted to know if there is a way to edit the database directly without this detour (In my case: PhotoData/Photos.SQLite).

qmfrederik commented 3 years ago

I'd say that is probably the best way to do it. If you can open a sqlite database off a Stream, you could implement the Stream class on top of the afc_client_... functions, but I'm not sure what you would gain.