diff options
author | Jochen Topf <jochen@topf.org> | 2012-01-22 15:41:11 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2012-01-22 15:41:11 +0100 |
commit | 8819d524fda740c8e79413e4465babb8fe5a504c (patch) | |
tree | 1a6e2273a13c0fc31907fa0fac280d73456d2304 /sources/josm | |
parent | 205fc841c449325ffe5a93601a1837802df7e8cd (diff) | |
download | taginfo-8819d524fda740c8e79413e4465babb8fe5a504c.tar taginfo-8819d524fda740c8e79413e4465babb8fe5a504c.tar.gz |
Use Sqlite3::Blob to import pngs into database
Diffstat (limited to 'sources/josm')
-rwxr-xr-x | sources/josm/import_josm.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/josm/import_josm.rb b/sources/josm/import_josm.rb index f4bc36c..51009ab 100755 --- a/sources/josm/import_josm.rb +++ b/sources/josm/import_josm.rb @@ -113,7 +113,7 @@ Dir.chdir(dir + '/svn-source') do File.open(path) do |file| png = file.read pathwostyle = path.sub(%r(^#{style}/), '') - db.execute('INSERT INTO josm_style_images (style, path, png) VALUES (?, ?, ?)', style, pathwostyle, png) + db.execute('INSERT INTO josm_style_images (style, path, png) VALUES (?, ?, ?)', style, pathwostyle, SQLite3::Blob.new(png)) end end end |