I've done this by writing the object to a byteArray and then base64
encoding and saving to a varchar column. The class you are saving and
any of its children classes need to have [RemoteClass] tags so they
get recreated as the right type instead of as generic objects.

I have heard that you can type a SQLite column as object and save to
it directly without the extra steps but haven't tried it.

One thing to think about is if you change the class that you've saved
to the database can have problems restoring to the new class.

--- In [email protected], "markflex2007" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> 
> I need save a object (instance of class) to sqlite database in AIR.Do 
> you think if it is possible?
> 
> Can you give me a simple example for this?I do not have idea for this 
> now.
> 
> I also need to read the object back to AIR from SQLite.
> 
> Thanks
> 
> Mark
>


Reply via email to