<tfoot id='Sg7I9'></tfoot>
    <bdo id='Sg7I9'></bdo><ul id='Sg7I9'></ul>

<small id='Sg7I9'></small><noframes id='Sg7I9'>

  • <i id='Sg7I9'><tr id='Sg7I9'><dt id='Sg7I9'><q id='Sg7I9'><span id='Sg7I9'><b id='Sg7I9'><form id='Sg7I9'><ins id='Sg7I9'></ins><ul id='Sg7I9'></ul><sub id='Sg7I9'></sub></form><legend id='Sg7I9'></legend><bdo id='Sg7I9'><pre id='Sg7I9'><center id='Sg7I9'></center></pre></bdo></b><th id='Sg7I9'></th></span></q></dt></tr></i><div id='Sg7I9'><tfoot id='Sg7I9'></tfoot><dl id='Sg7I9'><fieldset id='Sg7I9'></fieldset></dl></div>

        <legend id='Sg7I9'><style id='Sg7I9'><dir id='Sg7I9'><q id='Sg7I9'></q></dir></style></legend>
      1. 字符串到字节[],反之亦然?

        时间:2023-06-04
          • <bdo id='OVToB'></bdo><ul id='OVToB'></ul>
            <legend id='OVToB'><style id='OVToB'><dir id='OVToB'><q id='OVToB'></q></dir></style></legend>
                <tbody id='OVToB'></tbody>
              <i id='OVToB'><tr id='OVToB'><dt id='OVToB'><q id='OVToB'><span id='OVToB'><b id='OVToB'><form id='OVToB'><ins id='OVToB'></ins><ul id='OVToB'></ul><sub id='OVToB'></sub></form><legend id='OVToB'></legend><bdo id='OVToB'><pre id='OVToB'><center id='OVToB'></center></pre></bdo></b><th id='OVToB'></th></span></q></dt></tr></i><div id='OVToB'><tfoot id='OVToB'></tfoot><dl id='OVToB'><fieldset id='OVToB'></fieldset></dl></div>

              <small id='OVToB'></small><noframes id='OVToB'>

                <tfoot id='OVToB'></tfoot>

                  本文介绍了字符串到字节[],反之亦然?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  可能重复:
                  .NET 字符串到字节数组 C#

                  如何将 String 转换为 byte[] 数组,反之亦然?我需要将字符串存储在一些二进制存储中.请在两个方向显示示例.还有一件事:每个字符串可能大于 90Kb.

                  How do I convert String to byte[] array and vice versa? I need strings to be stored in some binary storage. Please show example in both directions. And one more thing: each string maybe bigger than 90Kb.

                  推荐答案

                  如果要使用UTF-8编码:

                  If you want to use UTF-8 encoding:

                  // string to byte[]
                  byte[] bytes = Encoding.UTF8.GetBytes(someString);
                  
                  // byte[] to string
                  string anotherString = Encoding.UTF8.GetString(bytes);
                  

                  这篇关于字符串到字节[],反之亦然?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何直接在 C# 中执行批处理命令? 下一篇:在 Winforms 中控制用户工作流程

                  相关文章

                  最新文章

                1. <legend id='LmJz8'><style id='LmJz8'><dir id='LmJz8'><q id='LmJz8'></q></dir></style></legend>

                    <i id='LmJz8'><tr id='LmJz8'><dt id='LmJz8'><q id='LmJz8'><span id='LmJz8'><b id='LmJz8'><form id='LmJz8'><ins id='LmJz8'></ins><ul id='LmJz8'></ul><sub id='LmJz8'></sub></form><legend id='LmJz8'></legend><bdo id='LmJz8'><pre id='LmJz8'><center id='LmJz8'></center></pre></bdo></b><th id='LmJz8'></th></span></q></dt></tr></i><div id='LmJz8'><tfoot id='LmJz8'></tfoot><dl id='LmJz8'><fieldset id='LmJz8'></fieldset></dl></div>
                    • <bdo id='LmJz8'></bdo><ul id='LmJz8'></ul>
                  1. <tfoot id='LmJz8'></tfoot>

                    <small id='LmJz8'></small><noframes id='LmJz8'>