Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 15th, 2006, 03:08 AM
Authorized User
 
Join Date: Jan 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default asp.net code to insert image in to database

hai everyone,

      i need to upload a image file to the sql server using ado .net in c# can anyone help me in this regard.

thanks in advance

__________________
Regards,
P.Madhusudhana Rao
 
Old March 15th, 2006, 10:35 PM
Authorized User
 
Join Date: Mar 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Madhu,
Here are a couple of nice articles that will give you a clear idea on using SQL Server to store and retreive images. But the code in this article is VB.NET, I guess its not too tough to rewrite it in C#. Lemme know if you need any help in doing the same.

http://aspalliance.com/articleViewer.aspx?aId=138
http://aspalliance.com/articleViewer.aspx?aId=140

Regards,
Sai Puli

 
Old March 16th, 2006, 02:54 AM
Authorized User
 
Join Date: Jan 2006
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hai saipuli

    thank u for ur best suggestion. i have to check for all the conditions like it should not be more than 1mb and should not be null and should overwrite if it already exists.

thanking u
madhu






Similar Threads
Thread Thread Starter Forum Replies Last Post
set image on <asp:Image> stored in DataBase myself.panku ASP.NET 2.0 Professional 1 August 11th, 2008 10:41 AM
insert/retrive image from oracle 9i in asp.net 2.0 Pramod2005 .NET Framework 1.x 0 July 4th, 2007 02:55 AM
How to insert an image in a (*.MDB) database thomaz C# 1 May 3rd, 2007 07:02 AM
asp.net 2 accessing sql database code problem... minstrel ASP.NET 2.0 Basics 1 August 31st, 2006 11:40 PM
store html code in a sql database through ASP.NET jmjyiannis VB.NET 2002/2003 Basics 0 July 9th, 2004 01:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.