如何使用Windows应用程序和C Sharp在SQL中存储.doc/.xlx文件 [英] how to store .doc/.xlx file in SQL using windows application and c sharp

查看:53
本文介绍了如何使用Windows应用程序和C Sharp在SQL中存储.doc/.xlx文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在表中存储一些文本文件.
表和编码的数据类型是什么.
请帮助我.........

I want to store some text file in table.
what are the data type of the table and coding.
Please help me any body.........

推荐答案

U need to first convert your file into Bytes by using MemoryStream
Then you can store the byte values into ur database.
And when retrieving you need to go reverse..
Means you need to fetch the bytes and convert that bytes into files.


这篇关于如何使用Windows应用程序和C Sharp在SQL中存储.doc/.xlx文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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