Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 20, 2012 12:56 PM by amit.jain
0 Points
2 Posts
Apr 15, 2012 06:54 AM|LINK
Can anyone tell me how to insert image into database from form...
Contributor
5720 Points
858 Posts
Apr 15, 2012 07:18 AM|LINK
Refer this links
http://nareshkamuni.blogspot.in/2012/02/insert-image-into-sqlserver-database-by.html
http://www.aspdotnet-suresh.com/2011/01/how-to-insert-images-into-database-and.html
All-Star
118619 Points
18779 Posts
Apr 17, 2012 01:35 AM|LINK
cool.deep Can anyone tell me how to insert image into database from form...
【Solutions】
1)Create a Table with a column whose type is "img"。
2)Then use SqlCommand,its parameter type should be Image。
3)Then do executing(after setting System.IO.File.ReadAllBytes from a certain image file and do setting……)。
Here's my sample of "How to edit with Image in a FormView",you can download the project and have a close look at it:
http://code.msdn.microsoft.com/Uploadedit-image-in-ASPNET-b96367a9
Star
11225 Points
1815 Posts
Apr 20, 2012 12:56 PM|LINK
refer Upload and save images in Sql Server database
cool.deep
0 Points
2 Posts
How to insert image into database in binary form
Apr 15, 2012 06:54 AM|LINK
Can anyone tell me how to insert image into database from form...
Vipindas
Contributor
5720 Points
858 Posts
Re: How to insert image into database in binary form
Apr 15, 2012 07:18 AM|LINK
Refer this links
http://nareshkamuni.blogspot.in/2012/02/insert-image-into-sqlserver-database-by.html
http://www.aspdotnet-suresh.com/2011/01/how-to-insert-images-into-database-and.html
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: How to insert image into database in binary form
Apr 17, 2012 01:35 AM|LINK
【Solutions】
1)Create a Table with a column whose type is "img"。
2)Then use SqlCommand,its parameter type should be Image。
3)Then do executing(after setting System.IO.File.ReadAllBytes from a certain image file and do setting……)。
Here's my sample of "How to edit with Image in a FormView",you can download the project and have a close look at it:
http://code.msdn.microsoft.com/Uploadedit-image-in-ASPNET-b96367a9
amit.jain
Star
11225 Points
1815 Posts
Re: How to insert image into database in binary form
Apr 20, 2012 12:56 PM|LINK
refer Upload and save images in Sql Server database
amiT jaiN
ASP.NET C# VB Articles And Code Examples