--- title: ByteString slug: Web/API/ByteString tags: - API - ByteString - DOM - DOM Reference - Reference - String - WebIDL - インターフェイス translation_of: Web/API/ByteString --- <div>{{APIRef("DOM")}}</div> <p><strong><code>ByteString</code></strong> は UTF-8 の文字列であり、一連のすべての可能性があるバイトの並びです。 <code>ByteString</code> は一般に JavaScript に返されるときに {{jsxref("String")}} に対応します。一般に、 HTTP などのバイト列と文字列を交換できるようなプロトコルにのみ使用されます。</p> <h2 id="Specifications" name="Specifications">仕様書</h2> <table class="standard-table"> <thead> <tr> <th scope="col">仕様書</th> <th scope="col">状態</th> <th scope="col">備考</th> </tr> </thead> <tbody> <tr> <td>{{SpecName('WebIDL', '#idl-ByteString', 'ByteString')}}</td> <td>{{Spec2('WebIDL')}}</td> <td>初回定義</td> </tr> </tbody> </table> <h2 id="See_also" name="See_also">関連情報</h2> <ul> <li>JavaScript {{jsxref("String")}}</li> <li><a href="/ja/docs/Web/API/DOMString/Binary">バイナリ文字列</a></li> </ul>