<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>masanobuimai</author_name>
  <author_url>https://blog.hatena.ne.jp/masanobuimai/</author_url>
  <blog_title>marsのメモ</blog_title>
  <blog_url>https://masanobuimai.hatenadiary.org/</blog_url>
  <categories>
    <anon>grails</anon>
  </categories>
  <description>えー，バカのひとつ覚えで「アップロードしたファイルはディスクのどっかに置いとけ」っての信じてきたんだけど，運用が楽じゃない。Grailsとは言え，のちのちWARで配布とか考えると「カレントディレクトリってどこやん？」ってとこから考え込むハメになる。 ならばよろしい，DBに格納してしまえ。ってんで，やってみた。 これがまた至極簡単。まずは，こんなドメイン作るよ。 用もないのにいちいちBLOBデータをフェッチされてはたまらんので，FileInfoとFileContentをわけてみたよ。図にするとこんなん。Blogってのは，シャレだ。 ファイルのアップロード(BlogController)とダウンロ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmasanobuimai.hatenadiary.org%2Fentry%2F20090227%2F1235742652&quot; title=&quot; アップロードしたファイルをDBに格納してみる - marsのメモ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/m/masanobuimai/20090227/20090227224745.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-02-27 22:50:52</published>
  <title> アップロードしたファイルをDBに格納してみる</title>
  <type>rich</type>
  <url>https://masanobuimai.hatenadiary.org/entry/20090227/1235742652</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
