필터 지우기
필터 지우기

write a blob inside a cell of sqlite database

조회 수: 13 (최근 30일)
Massimo
Massimo 2023년 6월 21일
댓글: Kautuk Raj 2023년 6월 27일
Guyse, I need help to write a blob inside one cell of a sqlite database.
Using DB browser for SQLite (it's a free program which everyone can download) it's simple, because i can simply select the cell of my database where i want to write blob, I click on import from file and that's all (the file I load it's a .mat).
Now, in matlab I can also see that blob file. I simply do a fetch to the database and then writing for example:
file = testDatabase{1} (if it is on first row the blob) I can see the blob file. (which is something like 230299x1 uint8
Now, what I need to do (and that's why I'm asking for your help) it's doing all this process with matlab, instead of using that external program DB browser to write the blob inside the database. I suppose if I can read that cell of my sqlite database in matlab to show the content, quite surely there must also be a way to write a blob file inside another cell for example. I don't know what to do.
  댓글 수: 2
Rik
Rik 2023년 6월 21일
You can edit my sqlite3 submission in the File Exchange to support BLOBs. If you don't want to go through all that trouble (I would understand), you will need to find out whether the native Matlab tools support the BLOB data type. The documentation would be the best place to start. For which functions did you read the documentation?
Kautuk Raj
Kautuk Raj 2023년 6월 27일
Have a look at the Database Toolbox.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by