<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>eagletmt</author_name>
  <author_url>https://blog.hatena.ne.jp/eagletmt/</author_url>
  <blog_title>EAGLE 雑記</blog_title>
  <blog_url>https://eagletmt.hatenadiary.org/</blog_url>
  <categories>
    <anon>Javascript</anon>
    <anon>Firefox</anon>
  </categories>
  <description>そういう関数が用意されていてもよさそうな気もするけど． MIMEService で MIME type を得ているけど，どうやら拡張子から判断してるだけっぽい． function toDataURL(file) { // assert(file instanceof Ci.nsIFile) let type = 'plain/text'; try { type = Cc['@mozilla.org/mime;1'].getService(Ci.nsIMIMEService).getTypeFromFile(file); } catch(e) {} let ifstream = Cc['@moz…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feagletmt.hatenadiary.org%2Fentry%2F20100705%2F1278266517&quot; title=&quot; ファイルから data URL を生成 - EAGLE 雑記&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>2010-07-05 03:01:57</published>
  <title> ファイルから data URL を生成</title>
  <type>rich</type>
  <url>https://eagletmt.hatenadiary.org/entry/20100705/1278266517</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
