0 Replies Latest reply on Dec 9, 2009 1:51 PM by Will Musson

    Loading SQLite blob data

    Will Musson

      Hi there,

           I'm storing an image (png/jpg/whatever) in an external application as blob data within an SQLite database. I'm then trying to open that database within an Air Application but I get a range error when I do so:


      RangeError: Error #2006: The supplied index is out of bounds.

      at flash.data::SQLStatement/internalExecute()

      at flash.data::SQLStatement/execute()


      If I store it from within the Air application as a bytearray then everything is okay, it's only when I use the external application to store the data that it goes wrong. The image does need to be stored in the database from an external non-Air application.


      Does anyone know what's going wrong and how I can fix it?


      Thanks in advance