Question
Please explain the problem you are running into.
Code sample
Provide a few simple lines of code to show your problem.
Version
Don't. Save images as files in disk and store its name into database.
I have a question: If I want to add offline support and web support, can I save it as bytes?
Yes you can. But I wouldn't suggest saving large binary data in database.
Most helpful comment
Don't. Save images as files in disk and store its name into database.