0

I have been saving images to a sqlite database with no issues until I installed Xcode 5. Here is the line of code and the error. The error is pointing to the [dataForImage length].

Code:

NSData *dataForImage = UIImagePNGRepresentation(imageSitePhoto.image);
sqlite3_bind_blob(statement, 14, [dataForImage bytes], [dataForImage length], SQLITE_TRANSIENT);

Error:

Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'int'

Anyone else had this and know how to fix it?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Jon
  • 687
  • 1
  • 9
  • 14

0 Answers0