<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cgs580</author_name>
  <author_url>https://blog.hatena.ne.jp/cgs580/</author_url>
  <blog_title>日常のプログラミングめも</blog_title>
  <blog_url>https://cgs580.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>base64</anon>
    <anon>画像</anon>
  </categories>
  <description>概要 S3のプライベートバケットに保管されている画像を表示したい。 S3からオブジェクトを取得し、それをbase64エンコードしたものをData URLを使用してブラウザに埋め込み、画像を表示することを行なったので それをメモとして残します。 Data URL とは Data URL は data: スキームが先頭についたURLで、データをインラインで文書に埋め込むことができます。 スキーム(data:)、MIMEタイプ、base64トークン、データ自体の4つの部品で構成されます。 data:[&lt;mediatype&gt;][;base64],&lt;data&gt; データが文字の場合は、そのまま指定すること…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcgs580.hatenablog.com%2Fentry%2F20241104%2F1730729166&quot; title=&quot;base64エンコード形式の文字列データをページに埋め込む - 日常のプログラミングめも&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>http://example.com/hoge.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-04 23:06:06</published>
  <title>base64エンコード形式の文字列データをページに埋め込む</title>
  <type>rich</type>
  <url>https://cgs580.hatenablog.com/entry/20241104/1730729166</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
