<?xml version="1.0" encoding="UTF-8"?>
<article>
  <body>&lt;html&gt;
&lt;p&gt;&lt;small&gt;This article was migrated from http://rails.office.drecom.jp/hibi/archive/34&lt;/small&gt;&lt;/p&gt;&#20633;&#24536;&#37682;&#12290;&lt;br /&gt;
&#12501;&#12449;&#12452;&#12523;&#12398;&#20869;&#23481;&#12434;base64&#12395;&#12375;&#12390;&#12393;&#12358;&#12420;&#12387;&#12390;&#28193;&#12375;&#12390;&#12356;&#12356;&#12363;&#24745;&#12435;&#12384;&#12290;&lt;br /&gt;
Base64&#12458;&#12502;&#12472;&#12455;&#12463;&#12488;&#12434;&#28193;&#12377;&#12398;&#12397;&#12435;&#12290;&lt;br /&gt;
&#12431;&#12363;&#12387;&#12383;&#12425;&#12289;&#12399;&#12353;&#12289;&#12385;&#12419;&#12435;&#12392;&#35501;&#12435;&#12391;&#12387;&#12390;&#24863;&#12376;&#12290;&lt;br /&gt;
&lt;br /&gt;
file = File.open(file_path).readlines.join('')&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;base64 = XMLRPC::Base64.new(file)&lt;/span&gt;&lt;br /&gt;
file_hash = {:name =&amp;gt; file_name, :bits =&amp;gt; base64}&lt;br /&gt;
&lt;br /&gt;
image = client2.call2('metaWeblog.newMediaObject',blog_id, blog_user, blog_password, file_hash)&lt;br /&gt;
 p image[1][&quot;url&quot;]&lt;br /&gt;
&lt;br /&gt;
   &lt;a href=&quot;http://rails.office.drecom.jp/hibi/archive/34&quot;&gt;http://rails.office.drecom.jp/hibi/archive/34&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;small&gt;This article was migrated from http://rails.office.drecom.jp/hibi/archive/34&lt;/small&gt;&lt;/p&gt;
&lt;/html&gt;</body>
  <cached-tag-list></cached-tag-list>
  <comments-count type="integer">0</comments-count>
  <created-at type="datetime">2006-11-22T04:17:00+00:00</created-at>
  <daily-archive-id type="integer">189</daily-archive-id>
  <filter-type>blue_stole</filter-type>
  <id type="integer">170</id>
  <monthly-archive-id type="integer">25</monthly-archive-id>
  <pdf-digest nil="true"></pdf-digest>
  <permalink>/hibi/archive/34</permalink>
  <published-at type="datetime">2006-11-22T04:17:00+00:00</published-at>
  <secret>410b8b41-609e-431e-8fcc-a9f26b4dfa0b</secret>
  <title>ruby&#12363;&#12425;XMLRPC&#12391;&#12501;&#12449;&#12452;&#12523;&#12450;&#12483;&#12503;&#12525;&#12540;&#12489;&#12288;</title>
  <updated-at type="datetime">2008-10-22T20:08:23+00:00</updated-at>
  <user-id type="integer">3</user-id>
</article>
