Pergunta

GreenDao. How insert image file (png) for example. What is the specify entity property (i can use "addByteArrayProperty"?). Thank you!

Foi útil?

Solução

Yes you can use addByteArrayProperty to store the raw bytes of your file. The file format doesn't matter, you only have to know how to deal with the raw data.

If you have files you could also store the path to the files on your device in your database.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top