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.
contents of pattern file(*.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
and so on....
I don't know to what extent Sqlite
support this.
Any suggestions?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.