在SQLite数据库中存储* .patt文件 [英] Storing *.patt file in Sqlite Database
问题描述
我有我想在存储SQLite数据库
,并在以后检索它 .patt
(模式)的文件为了与另一种模式来匹配它。
I have a .patt
(pattern) file which I want to store in Sqlite Database
and retrieve it later in order to match it with another pattern.
特征码文件的内容(*。PATT)
178 176 175 176 173 172 173 173 169 167 167 169 169 164 166 167
178 176 176 174 174 173 172 174 171 169 168 171 167 168 166 168
175 171 171 165 166 164 163 161 160 162 157 160 165 168 167 168
172 172 145 102 102 99 103 99 96 96 96 106 159 170 168 167
175 172 144 96 93 90 89 88 86 87 86 101 157 167 166 168
等等....
我不知道到什么程度 sqlite的
支持这一点。
I don't know to what extent Sqlite
support this.
有什么建议?
推荐答案
有一个一滴
数据类型这样的操作。
不过,这将是坏习惯商店和放大器;检索SQLite中的文件。它可以在应用程序运行读/写文件数据到SQLite的性能的影响。你应该直接存储文件和存储SQLite数据库内的路径。这样会很容易检索。
There is a blob
data-type for such operations.
However, It would be bad habit to store & retrieve a file in Sqlite. It may effect in performance of application for operation reading/writing file data into sqlite. You should store it directly as file and store its path inside the sqlite database. This way it will be easy to retrieve.
这篇关于在SQLite数据库中存储* .patt文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!