CodeIgniter Forums
SQLite3 - inserting binary data - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: SQLite3 - inserting binary data (/showthread.php?tid=76461)



SQLite3 - inserting binary data - michalsn - 05-14-2020

Hi,

Have anyone tried and succeeded in inserting any binary data to SQLite3 with CodeIgniter 4?

I tried to do it yesterday and failed. After some investigation, I think it's quite impossible, but maybe I'm just missing something. My data comes from a byte string, not a file - if it changes something (probably not). From what I saw it's probably possible with PreparedQuery, but I need it to work with Builder class.

My byte string has some chars that break everything
Code:
';


I would appreciate any ideas and hints.