如何使用ajaxfileupload控件在sql server数据库中以二进制格式插入图像或doc文件。这很紧急 [英] How to insert image or doc files in binary format in sql server database using ajaxfileupload control. Its urgent

查看:83
本文介绍了如何使用ajaxfileupload控件在sql server数据库中以二进制格式插入图像或doc文件。这很紧急的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须要在我的项目中实现。



首先我想使用ajaxfileupload控件上传多个文件并将这些文件以二进制格式存储到sql中服务器数据库



我的另一个要求是隐藏上传文件的ajaxfileupload控件的上传按钮,并使用我自己的提交按钮保存所有文件,因为我想保存员工单击提交按钮时的数据以及多个图像。



任何人都可以帮助我解决问题。

解决方案

按照你将获得类的链接将图像转换为二进制。



C#映像到字节数组和字节数组到映像转换器类 [ ^ ]

I have to requirements to be implemented in my project.

First I want to use ajaxfileupload control to upload multiple files and store these files in binary format into sql server database.

My another requirement is to hide the upload button of ajaxfileupload control through which files are uploaded and use my own submit button to save all the files because i want to save employees data along with multiple images on click of single submit button.

Can anyone help me in getting it solved.

解决方案

follow the link you will get class to convert image to binary.

C# Image to Byte Array and Byte Array to Image Converter Class[^]


这篇关于如何使用ajaxfileupload控件在sql server数据库中以二进制格式插入图像或doc文件。这很紧急的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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