Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top