fileupload控件将文件上传到SQL表 [英] fileupload control to upload file to SQL table
本文介绍了fileupload控件将文件上传到SQL表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用实体框架工作将文件上传到SQL表。
how to upload file to SQL table using entity frame work.
谢谢。
OK29
推荐答案
实体框架应代表您的file作为一个字节数组,所以你应该能够获得文件的字节数组,将数组赋值给对象的属性并进行另存为。
Entity Framework should represent your file as an array of bytes so you should be able to get a byte array for the file, assign the array to the property of the object and do a save as.
这篇关于fileupload控件将文件上传到SQL表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文