sqlite_orm icon indicating copy to clipboard operation
sqlite_orm copied to clipboard

Saving and retrieving image(blob) in DB

Open ElephantInTheRoomFirst opened this issue 9 years ago • 4 comments

Good morning, Do you have any example for saving and retrieving image(blob) in DB? I do not know corresponding data type of blob in C++.

It will be great if you provide some information.

ElephantInTheRoomFirst avatar Jun 05 '17 09:06 ElephantInTheRoomFirst

blob isn't supported right now - it has low priority in development plan cause blobs like images are rarely stored in sqlite. Anyway I planned to add blob support with std::vector<char> c++ blob type. I mean if you wanna bind a blob to a statement you have to use std::vector<char>. Ok if it's required I'll add blob support in next commits: std::vector<char> mapping in make_column, inserting and selecting std::vector<char>.

fnc12 avatar Jun 05 '17 12:06 fnc12

It will be great. Thanks. You can set it low priority.

ElephantInTheRoomFirst avatar Jun 05 '17 14:06 ElephantInTheRoomFirst

Please check it out here

fnc12 avatar Jun 07 '17 19:06 fnc12

Thanks

ElephantInTheRoomFirst avatar Jun 08 '17 08:06 ElephantInTheRoomFirst