OK, a bit more digging and I think the problem actually might be with this
bit of code...

NSData data = img.AsPng(); 

Inspecting 'data' after this statement, it shows as being 'null', tho it's
Length property is set to a value.

Tweaking the code to ...

NSData data = NSData.FromString("Bob Says Hello")

... and the insert works.

img.SaveToPhotosAlbum() works as expected, so img definitely has a valid
image.

I'd really rather not save the file to disk, the images are sent back to a
central server and removed from the device. I already have database synching
working and this would take care of it all without further changes.

Any more ideas?

Chris

PS ExecuteScalar and ExecuteNonQuery both work fine.


--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Inserting-image-into-SQLite-tp4565016p4568057.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to