将图像从图像文件夹插入MS数据库 [英] insert images into MS database from images folder

查看:93
本文介绍了将图像从图像文件夹插入MS数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我有images文件夹,我想将该文件夹中的所有这些图像插入到MS数据库的Images表中.

我在应用程序中使用ASP和c#,数据库中图像列"的数据类型为Image.

如果任何人有任何解决方案,请给我.


谢谢.

Hello all

I have images folder, and i want insert all of these images in that folder into Images table in my MS database.

I am using ASP and c# in my application, the Data Type of Image Column in my database is Image.

If any body have any solution please give it to me.


Thank you.

推荐答案

如果您正在数据库中使用文件流列,则可能会有所帮助:
If you''re using a filestream column in your database poerhaps this would help: How to store and fetch binary data into a file stream column[^]

The UI is built using WPF in the example but that shouldn''t be a problem since the logic to handle the database calls is not UI dependent.


这篇关于将图像从图像文件夹插入MS数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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