从数据库更新图像 [英] Update Image from database

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

问题描述

你好.....,

我正在研究这个项目中的项目图像将被保存。

我的问题是如何从数据库更新现有图像在C#。

plz帮助我...........

解决方案

试试

http://www.redmondpie.com/插入和检索图像来自sql-server-database-using-c / [ ^ ]

C#从数据库保存并加载图像 [ ^ ]

http://www.youtube.com/watch?v=szIj1xvNfM U [ ^ ]


如果您将图像存储在数据库中,则必须 -



1)获取更新图像之前在局部变量中的图像。

2)检查图像是否已更改?如果是,则在插入记录时插入

时将该图像插入数据库中,或者将本地变量作为参数。




或者如果你正在存储图像的路径,那么就像插入语句给出图像的路径一样。



如果任何问题仍然存在,请让我知道。

Hello.....,
I am working on project in this project image will be saved.
my question is that how to update existing image from database in C#.
plz help me...........

解决方案

Try
http://www.redmondpie.com/inserting-in-and-retrieving-image-from-sql-server-database-using-c/[^]
C# Save and Load Image from Database[^]
http://www.youtube.com/watch?v=szIj1xvNfMU[^]


If you are storing the Image in Database then you will have to-

1) Get the image in a local variable before updating the Image.
2) Check if the image is changed? if yes then insert that image in database as you insert
while inserting record or else give your local variable as parameter.


Or if you are storing path of the image then just as insert statement give path of the image.

If any problem persist let me know.


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

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