Thanks for the reply.

'Going round the houses' does work, even tho 'data' reports as being null
despite having a valid Length property.

The actual image I'm saving is a 'captured signature', but I've eliminated
any problem with that by loading an existing image on the device using...

NSData data = UIImage.FromFile(@"sampleimage.png").AsPNG();

which gives the same error sql error.

I'm now wondering if the setting of the parameter value using ...

command.Parameters[0].Value = data;

... is assigning null to the parameter value and causing the sql error since
'data' shows as being null despite it containing valid image data,
especially when you recall the error is 'Argument cannot be null'.

Chris



 




--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Inserting-image-into-SQLite-tp4565016p4568237.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