saving image into SQLITE?

后端 未结 3 1885
醉酒成梦
醉酒成梦 2020-12-09 07:32

which data type should I use for storing an image in sqlLite database table??

the following is my attempt:

@Override
public void onCreate(SQLiteDatab         


        
3条回答
  •  旧时难觅i
    2020-12-09 07:49

    Refer to the SQLite documentation on datatypes.

    You probably want a BLOB type, also known as "binary blob" or "Binary Long OBject". Just be aware that storing really big things in an SQLite database isn't necessarily a good idea - images are usually better off stored in the filesystem if you can manage it.

提交回复
热议问题