<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>TOBASE64</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">TOBASE64</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title"></span>
<p>
܂̓oCiIuWFNg Base64 \ɕϊ܂BBase64 \͈\ȕgp`ŁAoCif[^tH[dq[őMAf[^x[Xt@Cɕۑ邱Ƃł܂B
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">߂l</span>
<p>
܂̓oCiIuWFNg Base64 \B 
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">JeS</span>
<p>
ϊ֐A֐
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">֐̃V^bNX</span><pre>ToBase64(string ܂ binary_object[, encoding])
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">֘A</span><ul>

<li>BinaryEncode (oCif[^ base64 ւ̕ϊɂ)</li>

<li>cffile (oCif[^̃[hƓǂݍ݂ɂ)</li>

<li>cfwddx (oCif[^̃VAƃVAɂ)</li>

<li>IsBinary  ToBinary (oCif[^ǂ̊mFƁABase 64 IuWFNg̃oCi`ւ̕ϊɂ)</li>
</ul>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">qXg</span>
<p>
ColdFusion&#160;MX: encoding ǉ܂B
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">p[^</span>
<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">gp@</span>
<p>
BinaryEncode ֐gpāAׂĂ̐VKAvP[ṼoCif[^ Base64 ŃGR[hꂽf[^ɕϊ邱Ƃ߂܂B 
</p>
<pre>&lt;h3&gt;ToBase64 ̗&lt;/h3&gt;
&lt;!--- f[^̏ ----&gt;
&lt;cfset charData = &quot;&quot;&gt;
&lt;!--- ASCII  (32 ` 255) 쐬AA ---&gt;
&lt;cfloop index = &quot;data&quot; from = &quot;32&quot; to = &quot;255&quot;&gt;
   &lt;cfset ch = chr(data)&gt;
   &lt;cfset charData = charData &amp; ch&gt;
&lt;/cfloop&gt;
&lt;p&gt;
́̕AASCII \ׂ̂Ă̕ (32 ` 255) ÂłB&lt;br&gt;
&lt;cfoutput&gt;#charData#&lt;/cfoutput&gt;
&lt;/p&gt;
&lt;!--- ̕ Base64 `ɕϊ̂쐬 ----&gt;
&lt;cfset data64 = toBase64(charData)&gt;

&lt;!----- oCiɕϊ -------&gt;
&lt;cfset binaryData = toBinary(data64)&gt;
&lt;!--- oCi Base64 ɖ߂ ----&gt;
&lt;cfset another64 = toBase64(binaryData)&gt;
&lt;!---- another64  data64 rA҂v邱ƂmF ----&gt;
&lt;cfif another64 eq data64&gt;
   &lt;h3&gt;2  Base64 \͈vĂ܂B&lt;/h3&gt;
&lt;cfelse&gt;
   &lt;h3&gt;ϊG[łB&lt;/h3&gt;
&lt;/cfif&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="STRING ܂ BINARY_OBJECT">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">STRING ܂ BINARY_OBJECT</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

 </td>
  </tr>
  <tr>
    <td>A񖼁A܂̓oCiIuWFNgłB


  </td>
  </tr>
  </table>
</div>
<div id="ENCODING ">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">ENCODING </td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

 </td>
  </tr>
  <tr>
    <td>̏ꍇ́AoCgzł̕̕\@w肵܂BʓIɎgp
lɎ܂B
<ul>

<li>utf-8</li>

<li>iso-8859-1</li>

<li>windows-1252</li>

<li>us-ascii</li>

<li>shift_jis</li>

<li>iso-2022-jp</li>

<li>euc-jp</li>

<li>euc-kr</li>

<li>big5</li>

<li>euc-cn</li>

<li>utf-16</li>
</ul>
 </td>
  </tr>
  <tr>
    <td>GR[h̏ڍׂɂẮAwww.w3.org/International/O-charset.html</a> QƂ
ĂB 
 </td>
  </tr>
  <tr>
    <td>ftHgĺÅ֐Ăяoy[W̃GR[hłBcfcontentQƂĂ
BoCiIuWFNg̏ꍇ́Ãp[^͖܂B


  </td>
  </tr>
  </table>
</div>

  </body>
</html>
