<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pto8913</author_name>
  <author_url>https://blog.hatena.ne.jp/pto8913/</author_url>
  <blog_title>pto8913のメモ帳</blog_title>
  <blog_url>https://pto8913.hatenablog.com/</blog_url>
  <categories>
    <anon>OpenCV</anon>
    <anon>UE4-C++</anon>
    <anon>Python</anon>
    <anon>SQLite3</anon>
  </categories>
  <description>タイトルの日本語わかりにくくない？ ここでは画像はpng形式のものを使うことにします。適宜置き換えてください まずはPythonからsqlite3に画像を保存する。 import sqlite3 img_path = &quot;hoge.png&quot; # open image and write byte to blob with open(img_path, 'wb') as f: blob = f.read() conn = sqlite3.connect(&quot;huga.db&quot;) cur = conn.cursor() cur.execute(&quot;create table if not exists te…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpto8913.hatenablog.com%2Fentry%2F2020%2F01%2F15%2F065204&quot; title=&quot;PythonからSQLite3に保存した画像をC++ OpenCVでdecode - pto8913のメモ帳&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-01-15 06:52:04</published>
  <title>PythonからSQLite3に保存した画像をC++ OpenCVでdecode</title>
  <type>rich</type>
  <url>https://pto8913.hatenablog.com/entry/2020/01/15/065204</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
