Hello!
I have a problem. My SQLite contains images in a blob, but I can’t extract this images and put them in “display” object type.
This code didn’t work:
local i = 1;
for row in db:nrows("SELECT \* FROM images") do
Img[i] = display.newImageRect(row.image, \_W\*0.66, \_H\*0.5);
Img[i]:setReferencePoint(display.CenterReferencePoint);
i = i+1;
end
I’ve got the WARNING message: “failed to find image ( )”
This is because the display images can be loaded only from file and function tryed to find the path instead of loading from database.
I can’t imagine how take images from database and convert it to “display objects”.
Is this possible?
Please help!
Sorry for my English.
[import]uid: 106224 topic_id: 31283 reply_id: 331283[/import]