38

I've got a SQLite database. I'd like to create a field and declare it as type Byte array but I don't know what SQLite calls something that would be of type Byte Array. How would I do this?

2 Answers 2

65

You're looking for BLOB.

From the webpage:

BLOB - The value is a blob of data, stored exactly as it was input.

Here's an example of making a table with two columns - an id and some data, which is a BLOB:

CREATE TABLE t1 (id INTEGER PRIMARY KEY, data BLOB);
Sign up to request clarification or add additional context in comments.

Comments

5

To add an info - official is BLOB, but when building SQLite DB is Visual studio, use type "image" which is the alias for BLOB

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.