从数据库中获取二进制数据 [英] getting binary data out of the database

查看:164
本文介绍了从数据库中获取二进制数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个包含richTextBox的应用程序,用于插入文本.我将一些文本放入richTextBox中并将其保存到我的sql数据库中(列是varbinary(MAX)数据类型,使用此代码

I am doing an app which inclueds richTextBox, for inserting text. I put some text into richTextBox and save it into my sql database (column is varbinary(MAX) data type, with this code

byte[] myFile = Encoding.UTF8.GetBytes(richTextBox1.Text);

推荐答案

代码以获取二进制数据呢?您如何检索它?
Can you post the code to get the binary data as well? How are you retrieving it?


这篇关于从数据库中获取二进制数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆