Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | tim_e |
I have image data saved in an sqlite3 file.
In C++, GDNative, I can obtain a data blob of the image from sqlite3 in either of these two ways:
std::vector blobData;
or
unsigned char* buffer = new unsigned char[ length ];
(where I have determined the byte length from the blob)
How do I create a PoolByteArray from either a std::vector or the buffer? Is there another type I can use instead to access the image data from GDScript?
Thanks for your assistance.