上传文件或图像并将其保存到sql server中 [英] upload file or image and save it into sql server

查看:107
本文介绍了上传文件或图像并将其保存到sql server中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在搜索一种编码,该编码可将文件上传到网站中并将其保存在sql server数据库中.我该怎么做?我想随时可以从wbsite中打开文件,从数据库检索它.非常感谢!

感谢您的帮助.

最好的问候

Evi

Hi i am searchin for a coding that uploads a file in a website and save it in sql server database. How can i make this ? I want to can open the file in any time from my wbsite retreive it from the database. Thank you very much !

I will appreciate your help.

Best regards

Evi

推荐答案

数据库本身不是可从Web上获得的,因此您的解决方案缺少一两个部分.您将需要准备一些处理请求的内容,其次是将请求转换为查询并格式化结果响应的内容.

这与您在CP上寻找的内容很接近: C#从数据库保存和加载图像 [ ^ ]

干杯.
Databases aren''t intrinsically available from the web, so your solution is missing a piece or two. You will need to have something in place to handle requests, and secondly something to translate the request into a query and format the resultant response.

Here''s something close to what you''re looking for here on CP: C# Save and Load Image from Database[^]

Cheers.


这篇关于上传文件或图像并将其保存到sql server中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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