<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rudeboyjet</author_name>
  <author_url>https://blog.hatena.ne.jp/rudeboyjet/</author_url>
  <blog_title>よしだメモ</blog_title>
  <blog_url>https://rudeboyjet.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>scalaには実はファイルを書き込むAPIが存在しない。さらにscalaはバイナリデータを扱うのが苦手だったりで、画像の保存一つに偉い悩んでしまった。いろいろやった結果以下の感じに落ち着いた import java.net.URL import java.io._ val url = &quot;http://www.google.com/images/logos/ps_logo2.png&quot; val stream = new URL(url).openStream val buf = Stream.continually{ stream.read }.takeWhile{ -1 != }.map{ _.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frudeboyjet.hatenadiary.org%2Fentry%2F20110519%2Fp1&quot; title=&quot; [scala] Scalaで画像を保存 - よしだメモ&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>2011-05-19 00:00:00</published>
  <title> [scala] Scalaで画像を保存</title>
  <type>rich</type>
  <url>https://rudeboyjet.hatenadiary.org/entry/20110519/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
