Hi all!
I’ve been trying to insert several lines of HTML code into a SQLite
TEXT or BLOB field.
CREATE TABLE IF NOT EXISTS Instructions (‘id’ INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, ‘CRCData’ BLOB);
Putting
HTML
by itself into the INSERT statement works, but trying to put
<HTML>
into the INSERT statement does not work.
I have no single quotes in the HTML doc, and I’ve tried to escape the HTML code to no avail.
Any help would be greatly appreciated!
-Kevin
Rogerio_Rios
(Professional Support)
March 27, 2021, 12:05pm
2
Sorry did not understand. is it just the tag?
The data in the Airtables base/field is an entire HTML document. I was trying to place the document into SQLite.
I decided instead to use “File” instead of SQLite for this purpose. Works exactly as I wanted it to work.
Rogerio_Rios
(Professional Support)
March 27, 2021, 7:28pm
4
Does that mean you solved it?
Well, no, actually. I still don’t know how to put HTML code into an SQLite DB. While I no longer need to know for my current app, someone else might want more info, so I left it open hoping for a solution for the initial problem.
-Kevin
TimAi2
(metricrat)
March 28, 2021, 12:06am
6
Convert html code to base64 string is one way