使用imagepath在数据库中插入图像的存储过程 [英] stored procedure for inserting images in database with imagepath

查看:101
本文介绍了使用imagepath在数据库中插入图像的存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告诉别人如何通过存储过程将图像插入表中,我也可以通过单个查询将图像插入表中,例如〜/images/7s.gif,也可以在应用程序文件夹中,但是我不知道如何插入表中的图像按存储过程创建,图像路径为〜/images/7s.gif.

如果有人知道,请帮助我.

Please someone tell that how to insert images in table by stored procedure, I am able to insert images in table with single query, like ~/images/7s.gif , in application folder also , but I dont know how to insert images in table by stored procedure with image path ~/images/7s.gif.

If some one know, Please help me.

推荐答案

有关通过ADO.NET使用存储过程的信息,请访问:
MSDN:HOW TO:使用Visual C#.NET在ASP.NET中调用SQL Server存储过程 [ MSDN:HOW TO:使用ADO.NET和Visual C#.NET调用参数化存储过程 [ ADO.NET:使用存储过程 [
For usage of Stored Procedure via ADO.NET, go here:
MSDN: HOW TO: Call SQL Server Stored Procedures in ASP.NET by Using Visual C# .NET[^]
MSDN: HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET[^]
ADO.NET : Using Stored Procedures[^]

About image path that you speak of will be just a string. So, it''s like saving a string in database using ADO.NET with help of Stored Procedure. Smile now right? Try!


这篇关于使用imagepath在数据库中插入图像的存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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