• <legend id='gVymS'><style id='gVymS'><dir id='gVymS'><q id='gVymS'></q></dir></style></legend>

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

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

      <tfoot id='gVymS'></tfoot>

        • <bdo id='gVymS'></bdo><ul id='gVymS'></ul>

        为什么我会得到“字符串或二进制数据会被截断

        时间:2023-06-05
          <tbody id='alk8L'></tbody>

                • <bdo id='alk8L'></bdo><ul id='alk8L'></ul>

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

                  <i id='alk8L'><tr id='alk8L'><dt id='alk8L'><q id='alk8L'><span id='alk8L'><b id='alk8L'><form id='alk8L'><ins id='alk8L'></ins><ul id='alk8L'></ul><sub id='alk8L'></sub></form><legend id='alk8L'></legend><bdo id='alk8L'><pre id='alk8L'><center id='alk8L'></center></pre></bdo></b><th id='alk8L'></th></span></q></dt></tr></i><div id='alk8L'><tfoot id='alk8L'></tfoot><dl id='alk8L'><fieldset id='alk8L'></fieldset></dl></div>
                  <tfoot id='alk8L'></tfoot>
                  <legend id='alk8L'><style id='alk8L'><dir id='alk8L'><q id='alk8L'></q></dir></style></legend>
                • 本文介绍了为什么我会得到“字符串或二进制数据会被截断"?作为一个错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我对此有疑问:

                  字符串或二进制数据将被截断

                  String or binary data would be truncated

                  这是我的编码:

                  String savePath = @"C:UsersShenDesktopLenzOCRLenzOCRWindowsFormsApplication1ImageFile" + fileName;
                  
                  inputImageBox.Image = Image.FromFile(ImageLocation);
                  inputImageBox.Image.Save(savePath);
                  
                  String sqlData = "INSERT INTO CharacterOCR(ImageName, ImagePath, Character, CharacterDescription)    
                              VALUES('"+fileName+"', '"+savePath+"', '"+typeName+"', '"+CharDesc+"')";
                  SqlCommand cmd = new SqlCommand(sqlData, con);
                  cmd.ExecuteNonQuery(); // <<<<<error indicates here
                  

                  有什么问题?

                  推荐答案

                  查看表的架构并查看最大长度.您可能正在尝试插入大于最大长度的内容.

                  Look at the schema of your table and look at the max lengths. You're probably trying to insert something larger than the max length.

                  这篇关于为什么我会得到“字符串或二进制数据会被截断"?作为一个错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何从excel导入documentDB中的批量数据? 下一篇:如何在 C# 中保存文件和在 DB 中插入记录之间创建

                  相关文章

                  最新文章

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

                        <bdo id='nDGny'></bdo><ul id='nDGny'></ul>

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