Inserting Images to SqlServer in ASP .NET
page 1 of 1
Published: 14 May 2002
Unedited - Community Contributed
Abstract
There will be many occassion, in which we will be urged to store images in the Database. In some applications we may have some sensitive information which cannot be stored in a file system, since if anything is in the file system, then it may be very easy for the users to hack the pictures/images.
by Jesudas Chinnathampi (Das)
Feedback
Average Rating: 
Views (Total / Last 10 Days): 70523/ 47

Inserting Images to SqlServer in ASP .NET

Written on: May, 14th 2002.
Introduction

There will be many occassion, in which we will be urged to store images in the Database. In some applications we may have some sensitive information which cannot be stored in a file system, since if anything is in the file system, then it may be very easy for the users to hack the pictures/images.

In this article, we will discuss about, how we can insert images to a SqlServer 2000.

We will be learning the following aspects in this article.
  1. Prerequistes for inserting an image file
  2. Working with the Stream Object
  3. Finding the Size and Type of the image that is going to be uploaded
  4. How to use the InputStream method?

Prerequistes for inserting an image file

Two primary things that we need before the upload begins are

# The property enctype of the Form tag should be set to enctype="multipart/form-data"
# We should have a <input type=file> which allows the user to select the necessary image file (which will be inserted into the database)
# Also we need to Import the Namespace, System.IO to deal with the Stream object.

The above three points applies to an ASPX page. Also we need to have the following prerequistes in the SqlServer.

# We should have a Table with atleast one of the field of type Image.
# It will be better, if we have another field of type Varchar to hold the image type.

So, we have a Sql Table with the field type of Image and we have a <input type=file> (HTMLFile control). We also need a Submit button, where user can click after selecting the image. In the OnClick event of the button, we need to read the content of the image file and finally we insert the image to the table. Let us take a look at the OnClick event of the button, which reads the image and inserts into the sql table.

Code in the OnClick event of the Submit button.
    Dim intImageSize As Int64
    Dim strImageType As String
    Dim ImageStream As Stream

    ' Gets the Size of the Image
    intImageSize = PersonImage.PostedFile.ContentLength

    ' Gets the Image Type
    strImageType = PersonImage.PostedFile.ContentType

    ' Reads the Image
    ImageStream = PersonImage.PostedFile.InputStream

    Dim ImageContent(intImageSize) As Byte
    Dim intStatus As Integer
    intStatus = ImageStream.Read(ImageContent, 0, intImageSize)

    ' Create Instance of Connection and Command Object
    Dim myConnection As New SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
    Dim myCommand As New SqlCommand("sp_person_isp", myConnection)

    ' Mark the Command as a SPROC
    myCommand.CommandType = CommandType.StoredProcedure

    ' Add Parameters to SPROC
    Dim prmPersonImage As New SqlParameter("@PersonImage", SqlDbType.Image)
    prmPersonImage.Value = ImageContent
    myCommand.Parameters.Add(prmPersonImage)

    Dim prmPersonImageType As New SqlParameter("@PersonImageType", SqlDbType.VarChar, 255)
    prmPersonImageType.Value = strImageType
    myCommand.Parameters.Add(prmPersonImageType)

    Try
        myConnection.Open()
        myCommand.ExecuteNonQuery()
        myConnection.Close()
        Response.Write("New person successfully added!")
    Catch SQLexc As SqlException
        Response.Write("Insert Failed. Error Details are: " & SQLexc.ToString())
    End Try

How it works?

The Object, PersonImage is the name of the HTMLInputFile control. First we need to get the size of the image that is going to be inserted and that is done by

intImageSize = PersonImage.PostedFile.ContentLength

. Then we retrieve the image type using the property ContenType. Then the most important thing is, we need to get the Image Stream and that is done by

ImageStream = PersonImage.PostedFile.InputStream

. We have an array of Bytes, ImageContent, which is ready to hold the image content. The entire image is read using the method Read of the Stream Object. The method read takes three arguments, viz;

# Target Location that the Image Content to be copied
# Starting position for the purpose of read
# Number of bytes that needs to be read

. And the Read statement is

intStatus = ImageStream.Read(ImageContent, 0, intImageSize)

. Now, we have read the entire image content. Next we need to insert this into a sql table. We are going to use a stored procedure which inserts the image type and the image to a sql table. If you go through the above code listing, then you can see that we use the datatype as SqlDbType.Image. That is it. We have successfully inserted an image to SqlServer.

Sample output of our scenario

The code listing that we saw in the begining of this article is only a part of the ASPX page. I have the complete code listing for you in the download section. You can also download the stored procedure that are needed to create the table and the stored procedure which inserts the data into the table. Following is the output of our scenario:

Inserting an Image to SqlServer Database - 32,768 bytes
Fig: Inserting an Image to SqlServer Database.

Test this Script

Download the code

Click here to download the ASPX page
Click here to download the Stored Procedure

Conclusion

Thus we have discussed about how to insert image to a Sql Server. We also have ready to use examples and stored procedures which are available in the Download (above) section. To know how to read images from a SqlServer, read my article Retrieving Images from SqlServer in ASP .NET

Links

Retrieving Images from SqlServer in ASP .NET
Retrieving Images from SqlServer and displaying it in DataGrid
How to Upload a File?
Textbox Web Server Control

Send your comments to das@aspalliance.com        



User Comments

Title: iPad Game Developers | iPhone Game Developers   
Name: Sumeet
Date: 2012-11-04 10:53:28 PM
Comment:
We are an Offshore Game Development Company, Hire Game Developers with experience in 3D and 2D game development. We take Game Development project on turn key basis means we will design, storyboard and develop and launch your game for you.
Title: How to store video in sql server2005   
Name: madhuraj singh
Date: 2011-12-17 9:34:53 PM
Comment:
i want to upload video of size more than 1 gb
Title: asp.net   
Name: parthi
Date: 2011-11-10 8:00:31 AM
Comment:
from database i want to upload the images in gridview by using layer desgin and stored procedure concept .........plssssss help me...........
Title: VB.NEt   
Name: Zarine khan
Date: 2011-11-09 2:07:31 PM
Comment:
How to store images in Sql Server 2005 using VB.NEt....
and which data type i have used????????????????


pls send me the link or source code.
Title: asp.net with vb   
Name: vanith
Date: 2011-10-22 3:43:38 AM
Comment:
im doing a project elctronic magazine in asp.net with sql2005. i want to know how can store digital format,pdf file format data into sql2005 using with vb coding. i need it quickly pls

pls pls reply to following id

vanithn17@gmail.com
Title: Image + Button Display   
Name: venuacharya
Date: 2011-09-22 2:11:30 AM
Comment:
Dear sir...

This code is very use-full for me....

! doubt...

How to Display the Image + Button in same wep-page.....

plz replay to Fallowing ID....
venuacharya7@gmail.com
Title: c#   
Name: makky
Date: 2011-08-10 1:17:22 AM
Comment:
how can i added a song to sql data base
Title: CSharp and VB   
Name: Sajid
Date: 2011-07-17 9:28:41 AM
Comment:
the people who want code in Csharp please user www.developerfusion.com/tools/
Title: More images   
Name: Saijd
Date: 2011-07-17 9:27:17 AM
Comment:
I had did a complete modification on this tutorial, thank you much for giving this simple application. The only thing i want to know if i want to add more 2 or 3 images in it. i am able to save images to database using your code but not able to retrive it the code show in datagrid is
FormatURL(DataBinder.Eval(Container.DataItem, "PersonID"))
this bind to datatable rows id. so how i get another images.
thanks again
sajid.designer@gmail.com
Title: c#   
Name: SAGAR
Date: 2011-07-13 9:34:51 AM
Comment:
plz send me how to insert image in SqlServer using ASP.NET c#
Title: Great   
Name: Isaiah Williams
Date: 2011-05-20 5:50:57 AM
Comment:
Great Tutorial was able to modify it as needed for my application but very clear and precise with what was needed and great to use as a building block
Title: very help full this code in vb but i need C#   
Name: sevenhills
Date: 2011-05-19 2:25:26 AM
Comment:
plz send me how to insert image in SqlServer using ASP.NET c#
sevenhillwins@gmail.com
Title: how to insert image in SqlServer using ASP.VB.NET   
Name: S.T.Ali
Date: 2011-03-28 4:10:48 AM
Comment:
hello,
plz send me the full details and coding for insert and retrieve the image using ASP.NET2008 in VB. language/SqlServer2005. I need full details for that source code.
My mail-id:
syedtalibali7@gmail.com
Title: I want to this in c sharp   
Name: Amit
Date: 2011-02-05 2:09:42 AM
Comment:
Can u wright the code ofr c Sharp
Title: How to upload and display the image and videos using ASP.Net/SqlServer   
Name: Nagajothi
Date: 2010-11-11 8:33:30 AM
Comment:
Hi,
plz send me the full details and coding for upload and display the videos using ASP.NET/SqlServer. I need full details for that source code.
My mail-ids:
jo86_dgl@ymail.com
balasubramaniank85@gmail.com
Title: how to retrieve image from sql server in asp.net   
Name: vinay
Date: 2010-11-09 8:03:40 AM
Comment:
plz send me the code in c#
my mail id is :

ce.vinaypaliwal@gmail.com
Title: Mr   
Name: Stefano
Date: 2010-10-17 3:09:56 PM
Comment:
Hello,
I would like to know how to insert an image into a sql server database using asp instead asp.net ?

Thank you a lot.
Title: No funciona   
Name: yz
Date: 2010-09-20 12:13:08 PM
Comment:
ya lo probe y no funciona :(
Title: mr   
Name: Collins
Date: 2010-07-13 2:58:25 PM
Comment:
This is the error message i am getting:
The ConnectionString property has not been initialized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The ConnectionString property has not been initialized.

Source Error:


Line 130: Try
Line 131:
Line 132: myConnection.Open()
Line 133:
Line 134: myCommand.ExecuteNonQuery()
Title: mr   
Name: Collins
Date: 2010-07-12 7:01:47 PM
Comment:
Im facing difficult to get this to work. The stored procedure is my biggest concern. can someone help me pls?
Title: mr   
Name: Collins
Date: 2010-07-11 1:21:22 PM
Comment:
\
\
\
Title: mr   
Name: Collins
Date: 2010-07-11 1:15:16 PM
Comment:
\
\
\
Title: Saving image in SQL Server database   
Name: Ginny Pulikkan
Date: 2010-07-09 12:05:15 PM
Comment:
Working with the stream object got a lot easier..Thanks
Title: saving image in sqlserver database   
Name: Ranjani
Date: 2010-06-23 8:21:12 AM
Comment:
Please...Can u give this code in c# with explanation...Since i dont know VB...Pls..and my id is ranjanijamuna@gmail.com..Thanks in advance..
Title: how to retrieve image from sql server in asp.net   
Name: rachido
Date: 2010-06-05 3:06:10 PM
Comment:
please how to retrieve image from sql server in asp.net

if same one know hwo do it please send it to me in my email adress "rachidotec@gmail.com"
please
Title: Stored Procedure - sp_person_isp   
Name: Dave
Date: 2010-05-05 8:43:59 AM
Comment:
anyone have this stored procedure? the link from this page doesn't seem to be working.
Title: how to retrieve image from sql server in asp.net   
Name: sweta priyadershi
Date: 2010-03-21 8:12:11 AM
Comment:
really this is very helpful for a student who is searching for something in a struggling period. i am very very thankful to u so that from ur given i am able to remove my doubts...
Title: hf   
Name: ankit
Date: 2010-03-11 10:10:46 PM
Comment:
how can upload a image in database asp.net
Title: uploading Image file into mysql database.   
Name: Vinayak Hugar
Date: 2010-03-08 5:05:18 AM
Comment:
Hi.....
I am new in development field and I know only in C#.So please send me the code in c# to uploading an image file as well as .doc file into MySql database. to my mail id vin_hugar@yahoo.co.in thanks in advance..
Title: Retrieving Images from SqlServer in ASP .NET   
Name: Fred Martino
Date: 2010-02-26 11:27:36 PM
Comment:
When I run this script I get no results

Here is my modified code


Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration

Partial Class GetImage
Inherits System.Web.UI.Page

Public Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)

Dim myConnection As New System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings("amtsConnectionString").ConnectionString)

Dim myCommand As New SqlCommand("Select * from CarAds2", myConnection)

Try
myConnection.Open()
Dim myDataReader As SqlDataReader
myDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection)

Do While (myDataReader.Read())
Response.ContentType = myDataReader.Item("ImgType1")
Response.BinaryWrite(myDataReader.Item("Image1"))
Loop
myConnection.Close()
Response.Write("Image successfully retrieved!")
Catch SQLexc As SqlException
Response.Write("Read Failed : " & SQLexc.ToString())
End Try

End Sub

End Class
Title: Upload Control   
Name: Mike
Date: 2010-02-19 4:24:19 PM
Comment:
Does it have to be a html control? Can you use a fileupload control instead?

mr4100@hotmail.com
Title: prob to replace background image to the new 1   
Name: noura
Date: 2010-02-09 7:22:25 PM
Comment:
hi,pliz give me direction on how to replace image of website background with the new one.fyi,im new in programming development.

Afiezah_1221@yahoo.com
Title: C# coding   
Name: seema
Date: 2010-01-27 5:32:21 AM
Comment:
plz send the C# coding of insert image in database
Title: Having some issues with the code   
Name: Jim Norcal
Date: 2010-01-11 1:01:11 AM
Comment:
I'm having some issues getting this code to work. Has anyone run into any problems with trying to make this code work out of the box (except for possibly the change of sqlconnection parameters or anything else that's necessary to match the server configuration). Is this the place to discuss this or is there some other place meant for that purpose (affiliated with this site)?
Title: vb.net   
Name: KAVITHA
Date: 2009-12-26 4:38:22 AM
Comment:
Can u send me the full coding of the image upload in sql server database with c# coding
Title: C# coding   
Name: Pradeep Kumar Maurya
Date: 2009-12-16 1:08:50 AM
Comment:
Can u send me the full coding of the image upload in sql server database with c# coding
Title: How to insert Byte Array using SQL Command in VB .net   
Name: Tanmoy Das
Date: 2009-12-10 10:00:30 AM
Comment:
I want that code.
please send me this code.

Thanking You.
Title: isoftwarehouse.net   
Name: ahmad
Date: 2009-10-22 6:17:29 AM
Comment:
thank U
Title: Very Informative   
Name: Abiel (Texas)
Date: 2009-10-01 11:02:23 AM
Comment:
Thanks for the article! Very useful.
Title: It's Very Good Source Code   
Name: Amirhossein(From Iran)
Date: 2009-09-16 5:26:09 AM
Comment:
many thanks!
Title: Storing image in vb   
Name: Anupama Phakatkar
Date: 2009-09-15 6:48:48 AM
Comment:
hello i want code in vb6 for storing image in oracle 9i
Title: INSERT IMAGE IN DATABASE   
Name: RAJ KUMAR
Date: 2009-08-28 4:33:45 AM
Comment:
I WANTED SAME THIN IN VB.NET BUT HERE IS IN ASP.NET...
IF IT IS POSSIBLE GIVE ME IN VB.NET OTHERWISE NO USE FOR ME..TOTAL BAKWAAS...
Title: Stored Procedure   
Name: Sebi
Date: 2009-08-27 12:52:48 PM
Comment:
the link for the Stored Procedure isnt working. any chance of giving the query to creat that pls?

thx
Title: Nice tutorial   
Name: Rao
Date: 2009-07-30 7:08:47 PM
Comment:
Excellent tutorial, explanation. Thanks.
Title: C# Code for the same   
Name: Gayatri
Date: 2009-05-27 4:43:01 AM
Comment:
Hii, I want the same code in C# as I dn't know VB at all. Please send me the same VB code to gayu.dearest@gmail.com.

Thanks
Title: Great   
Name: Ajisha
Date: 2009-05-07 10:28:00 AM
Comment:
Great coding,it works superbly,ThankU
Title: coding   
Name: Kalpana
Date: 2009-04-21 4:54:26 PM
Comment:
Cool codng. and good explanation
Thanks
Title: code in C#   
Name: ashu
Date: 2009-04-11 12:47:33 AM
Comment:
Hi, I'm new too development and I can understand C# better than VB...it would be great if you could send in the code for inserting the image into SQL database and retrieving the same into the webpage written in C#.

Thanks in advance!!
Title: same code in C#   
Name: Ranjana
Date: 2009-04-11 12:43:39 AM
Comment:
Please send me the same code in C# to insert and retrieve images from sqlserver and display it in gridview
Title: gr8 work   
Name: rincy
Date: 2009-03-30 1:29:29 PM
Comment:
thanks 4 de detail coding.
Title: zxz   
Name: zx
Date: 2009-03-27 6:29:44 AM
Comment:
cool coding
Title: code   
Name: royal
Date: 2009-03-19 5:24:03 AM
Comment:
Good coding ,U helped me a lot ,thank Q
Title: Mast Code   
Name: MAnjunath
Date: 2009-03-11 6:14:23 AM
Comment:
Mast Code sir keep it up
Title: Super code   
Name: David
Date: 2009-03-09 6:09:54 PM
Comment:
Hi,

Very nice coding and helped me a lot,

Kind regards and many thanks!
Title: Inserting Images In sqlServer database   
Name: Onkar Chauahn
Date: 2009-02-26 2:09:19 AM
Comment:
Hi I am new in development field and I know only in C#.So please send me the code in c# to insert and retrieve images from sql databases.thanks
Title: Insertinh images in database   
Name: Pradeep
Date: 2009-02-16 1:12:01 AM
Comment:
wanted the code in vb.net for inserting the images in the database.Its Urgent pls as soon as possible.
reply to sunnysays143@gmail.com
Title: Excellent Work   
Name: Nadeem
Date: 2009-02-04 6:59:37 AM
Comment:
Ever i see this excellent work! Perfect!!
Title: Stored Procedure   
Name: Passer-by
Date: 2009-02-03 3:57:47 AM
Comment:
Hi. I would like to enquire about the stored procedure. How do i put the coding into the stored procedure. I created a table into stored procedure and put all the code in. But i have errors like statement type is not supported. Anyone can tell me whats the problem? sry i am new in asp.net. Thanks alot in advance.
Title: Code in C#   
Name: Triveni
Date: 2009-01-09 4:13:14 PM
Comment:
Hi, I'm new too development and I can understand C# better than VB...it would be great if you could send in the code for inserting the image into SQL database and retrieving the same into the webpage written in C#.

Thanks in advance!!
Title: authentication   
Name: khushbu shah
Date: 2009-01-07 12:54:58 AM
Comment:
how to authenticate people in asp.net to perticular forms
with out using logincontrol with c# &with using table
roleformdetail(roleid,formid,view,add,update,delete)
please give me solution
Title: problem to retrive image with info   
Name: khushbu shah
Date: 2009-01-07 12:50:35 AM
Comment:
i have stored image to gridview with its info but
i can't get the solution for retriving image with its info
to gridview using image datatype please give me its solution
Title: inserting image into sql server and retrive from there based on c#   
Name: ramesh
Date: 2008-12-19 6:02:10 AM
Comment:
Plz send the full code and also retrive n display the data or image using datalist or gridview
Title: inserting image from sql server   
Name: satish borkhediya
Date: 2008-12-10 11:32:39 AM
Comment:
thanks for it...
Title: how to insert image path in asp.net2.0 with vb.net   
Name: Prity
Date: 2008-10-16 2:39:25 AM
Comment:
Plz send the full code and also retrive n display the data or image using datalist or gridview
Title: Retrieve & Display of image using ObjectDataSource   
Name: Ram Rangarajan
Date: 2008-08-30 12:28:20 AM
Comment:
Hi,

My design is not to direct SQL query or SQLDataSource since that will not be secure. Instead I am using a ObjectDataSource that uses an object to retreive the photos.

I am using a GridView to display the records but the image does not get displayed.

Hope someone has some insight into this.

Thanks
Title: display the image in gridview   
Name: Vishesh
Date: 2008-08-04 11:02:22 PM
Comment:
Hi Friend,

Your code is really nice.
Could u do me a favour can u send me the code to display the images from sql server2000 to gridview in asp.net 2.0 dynamically.
It's urgent
thanks's in advance
Title: Update the image   
Name: Hahsen
Date: 2008-07-28 11:21:01 AM
Comment:
Dear friend,
I want to modify the existing image which is stored in my sql server 2005 databse please mail me basha_asen@yahoo.co.in if u know?
Title: VERY VERY THANK FULL TO U   
Name: cdeepakmca,PGCollg,Secbad
Date: 2008-07-22 7:31:19 AM
Comment:
the above is really worked out for me , thanks for helpling
Title: Upload videos   
Name: N.Nirmal Ravendish
Date: 2008-06-24 6:00:38 AM
Comment:
How to upload videos to sql server and retrieving it and finding its total run time using c#
Title: i was unable to update images in gridview using asp.net   
Name: ramesh
Date: 2008-06-13 1:50:04 AM
Comment:
i have insert the images in database but unable to display image in gridview and how to update images in database using asp.net & c#.net
pl's help me and mail to d.ramesh005@gmail.com
thanking u sir
Title: I was unable to retieve images from SQL Server   
Name: Jayprakash Shah
Date: 2008-05-30 6:07:12 AM
Comment:
i have inserted the images in database but was unable to retieve the photo from database. Please help me with a much simple code, mail me at "jayprakash_768@aol.in"
Title: inserting images into mdb thru asp.net   
Name: Selva
Date: 2008-05-02 12:13:42 PM
Comment:
Dear Das,

If you could help me on this title, i will be thankful to you. i am using mdb instead of sql

selva
Title: ThankS   
Name: Faridul Alam
Date: 2008-04-23 2:20:28 AM
Comment:
ThankS for a helpful code... ... ...
Title: Retriving data   
Name: SHARMA
Date: 2008-03-26 3:01:42 AM
Comment:
THANK U , Very Much
Title: Inserting pdf to Oracle in ASP.Net   
Name: Jason
Date: 2008-03-12 3:04:25 AM
Comment:
Thanks!
Could I insert pdf file to oracle using codes like those?

Jasexu@hotmail.com
Title: senthil   
Name: senthil
Date: 2008-03-01 5:33:03 AM
Comment:
how can i insert in images in asp dot net
Title: Inserting and retreiving images   
Name: Raghunathan
Date: 2008-02-18 5:04:44 AM
Comment:
Thank U very much this information was very Help ful for me.
Title: ConnectionString property has not been initialized   
Name: Ross Hinton
Date: 2008-02-12 6:59:40 AM
Comment:
I think im really close to getting this to work but i get this error come up, ConnectionString property has not been initialized

any ideas??
Title: Inserting image   
Name: Davidson
Date: 2008-02-08 4:37:45 PM
Comment:
\
\
\
\
\
\
\
\
Title: Thanks   
Name: Debasish
Date: 2008-02-01 12:47:43 PM
Comment:
Thank U very much this information was very Help ful for me.
Title: Hi   
Name: Rahul Gupta
Date: 2008-01-29 10:00:55 AM
Comment:
Thank u 4 helping for knowing abt asp.net



With Regards
Rahul Kumar Gupta(RKG)
Meerut(UP)
tinku19842005@rediffmail.com
Title: Hi   
Name: Ahmed Khan
Date: 2008-01-16 10:59:19 PM
Comment:
This site is rocking!!!!!!!!!
Title: ASp.net reterving Image   
Name: Raja mohamed
Date: 2008-01-11 10:46:56 AM
Comment:
Sir I used ur Coding But its display person image is not declared. how ll i over come this error ple reply immed sir.
Title: ASP.NET Inserting and retreiving images   
Name: Muhammad Abbas
Date: 2008-01-03 2:15:59 PM
Comment:
Hi
The people like you courged the biggners to learn further...
I really apriciated your link and will suggest to every body who looking for learning source to join this site.

God bless and thank you so much

Have good time in all your life.
Title: Mail server   
Name: vicky
Date: 2008-01-02 5:38:20 AM
Comment:
hi everybody ! i m making mail server ..in asp.net with c#! plz help me how i procceed..?? i will always thankful to u if u send me anykind of help
thanks

v.rajbhar@gmail.com
Title: While trying to insert the image in the database i am encounter an error message "Object reference not set" Pls help me out   
Name: Romesh
Date: 2007-12-31 12:26:38 AM
Comment:
Hello every one could u guys help me out
Pls send me the solution at get_rome@yahoo.co.in
Title: how to insert image path   
Name: raghu
Date: 2007-12-17 6:49:05 AM
Comment:
hi sir thanks for your codding, but i want to insert image path in sqlserver using c#, rather then image,
please do solve my problem, if any one knows the process please send me a mail.
p.raghu@yahoo.co.in
thank you
raghu
Title: retrieveimage   
Name: gowrisankar
Date: 2007-12-15 6:07:15 AM
Comment:
hi,
Image store code was successfully updated. but there is no properlink to retrive images coding ..
so plz kindly update the link .or send the code to my id
gowrisankarvr@gmail.com .thanks
Title: retrieve image   
Name: gowrisankar
Date: 2007-12-15 5:55:10 AM
Comment:
hi,
Image store code was successfully updated. but there is no properlink to retrive images coding ..
so plz kindly update the link .or send the code to my id
gowrisankarvr@gmail.com .thanks
Title: Retrive an image in asp.net   
Name: Waheed
Date: 2007-11-24 12:07:49 AM
Comment:
Hi ,

I want to retrive an image from database and display it on image control in asp.net with vb.net kindly help me .

plz send suggestions waheed_swe2k3@yahoo.com
Title: insert image   
Name: Monkey brains
Date: 2007-11-21 11:21:02 PM
Comment:
I would have done this in JAVA and JSP instead :P
Title: Image manage in the MS-SQL   
Name: Pawan Shukla
Date: 2007-11-20 9:33:13 AM
Comment:
Explaination and coding in this artical is realy very nice .this will be help full for me and may be for other.
Thanx a lots.
Title: hii   
Name: jew
Date: 2007-11-09 12:41:00 AM
Comment:
hii all..thnks 4 d code
Title: Execellent   
Name: Akku
Date: 2007-10-19 8:18:27 AM
Comment:
Thank U very much this information was very Help ful for me.
Title: tank u   
Name: mansih
Date: 2007-09-28 5:49:04 AM
Comment:
thanx
Title: Fine   
Name: Mitesh
Date: 2007-09-20 1:43:59 AM
Comment:
It works for me. Nice help . Thanx
Title: good   
Name: priya
Date: 2007-09-18 3:14:35 AM
Comment:
its very interesting and really very helpful.
Title: Thanks...will try tomorrow   
Name: nemovyoh
Date: 2007-08-26 9:32:12 AM
Comment:
Woow....the code seem short and nice....will try tomorrow, hope it work for my project.
Title: plz help me.   
Name: Anju
Date: 2007-08-23 3:56:40 AM
Comment:
hi...plz help me i want to insert images in Ms access database in asp.net...how to save the uploaded picture....may be can someone help me to solve this ...you can mail at anjususanraju@gmail.com
Title: I NEED HELP....   
Name: Joshua
Date: 2007-08-09 6:11:47 AM
Comment:
Hi... i need help... i ahve error when i add in the "enctype="multipart/form-data"... do u all have any idea y?? i think its cos of i am using the master template for this webpage and maybe it effect it... cos i do not have any problem uploading data into the SQL server whithout "enctype="multipart/form-data"... Maybe can someone help me solve this problem... you can email me at alone_1987@hotmail.com

many thanks in advance....
Title: New person successfully added!   
Name: Juvan Challi
Date: 2007-07-25 12:51:39 AM
Comment:
When I insert image in sqlserver table
I get this "New person successfully added!"
But when I check the table I don't see any new data.
Please help.
juvan@hotmail.com

Thanks.

Juvan
Title: How to insert image and overwrite   
Name: Eduardo Paez
Date: 2007-06-19 9:15:24 PM
Comment:
Hi,

I think this code is great! Now all i need to know is how can I tell de database to overwrite the file.
I need to upload an image to the SQL database, but I also need that when de user makes that action, the older image gets deleted so that the new one takes the place it is suposed to be in the aspx page.

Thanks!
Title: how to insert image in sqlserver table   
Name: Gaurav Dutt
Date: 2007-06-19 6:01:15 AM
Comment:
Hello,
In my perception this is a very easy and clear code. And help me to solve my query. Actually this insert image in binary format, but some developer also require to insert image as url. Please also provide the code for saving a image as url in sqlserver table.
At last this is a very good and eary code to understand.
Title: how to insert image in SQL Server using insert query command in c#   
Name: Balaji
Date: 2007-06-16 2:28:47 AM
Comment:
I have a problem with the inserting a image in Sql server. I have inserted using stored procedure it is working fine but i tried to insert the image using Insert command what type i want to pass for the image Type
Title: Problem With Inserting Image in Database from clientSide pages   
Name: Lil Develeoper
Date: 2007-06-06 6:43:45 AM
Comment:
Hello !

i use this code for inserting my image into database but when i run my page in some other Pc using server url it dosent save my image n it return null value into my field
so what i should do with this problem ??

Regards
Title: asp.net   
Name: satyendra
Date: 2007-06-01 7:25:43 AM
Comment:
Dim intImageSize As Int64
Dim strImageType As String
Dim ImageStream As Stream

' Gets the Size of the Image
intImageSize = PersonImage.PostedFile.ContentLength

' Gets the Image Type
strImageType = PersonImage.PostedFile.ContentType

' Reads the Image
ImageStream = PersonImage.PostedFile.InputStream

Dim ImageContent(intImageSize) As Byte
Dim intStatus As Integer
intStatus = ImageStream.Read(ImageContent, 0, intImageSize)

' Create Instance of Connection and Command Object
Dim myConnection As New SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
Dim myCommand As New SqlCommand("sp_person_isp", myConnection)

' Mark the Command as a SPROC
myCommand.CommandType = CommandType.StoredProcedure

' Add Parameters to SPROC
Dim prmPersonImage As New SqlParameter("@PersonImage", SqlDbType.Image)
prmPersonImage.Value = ImageContent
myCommand.Parameters.Add(prmPersonImage)

Dim prmPersonImageType As New SqlParameter("@PersonImageType", SqlDbType.VarChar, 255)
prmPersonImageType.Value = strImageType
myCommand.Parameters.Add(prmPersonImageType)

Try
myConnection.Open()
myCommand.ExecuteNonQuery()
myConnection.Close()
Response.Write("New person successfully added!")
Catch SQLexc As SqlException
Response.Write("Insert Failed. Error Details are: " & SQLexc.ToString())
End Try
Title: doubt   
Name: sangram
Date: 2007-05-26 4:20:03 AM
Comment:
hi there,

actualy i hv understood the procedure of inserting an image.
but in this code the object PersonsImage what is it ?

thank you.

sangram.pk@gmail.com
Title: Hi   
Name: Shaan
Date: 2007-05-23 5:43:05 AM
Comment:
Hi,
Article is very good.
Title: Hello   
Name: N
Date: 2007-05-13 12:05:05 PM
Comment:
this is a good artical. but it could be better if u eplain in detailed way. thank you. nice day
Title: How to browse the stored image   
Name: krunal
Date: 2007-05-12 3:36:19 AM
Comment:
You also need to show how to browse the image.
Title: verygood   
Name: bargav
Date: 2007-05-11 4:23:01 AM
Comment:
hi this article is good
Title: nice   
Name: manivannan
Date: 2007-04-26 10:04:22 AM
Comment:
hi, very good coding, very help full to learn for beginner's
Title: C# Code   
Name: Silgia
Date: 2007-04-26 6:24:59 AM
Comment:
Code in the OnClick event of the Submit button.
--------------------------------------------------

int intImageSize;
string strImageType;
Stream ImageStream;
int intStatus;

// Gets the Size of the Image
if (((FileUpload)DetailsView1.FindControl("FileUpload1")).PostedFile != null && ((FileUpload)DetailsView1.FindControl("FileUpload1")).PostedFile.ContentLength > 0)
{
intImageSize = ((FileUpload)DetailsView1.FindControl("FileUpload1")).PostedFile.ContentLength;

// Gets the Image Type
strImageType = ((FileUpload)DetailsView1.FindControl("FileUpload1")).PostedFile.ContentType;
Byte[] ImageContent = new byte[intImageSize];
// Reads the Image
ImageStream = ((FileUpload)DetailsView1.FindControl("FileUpload1")).PostedFile.InputStream;
intStatus = ImageStream.Read(ImageContent, 0, intImageSize);
Title: WebDeveloper   
Name: Rajesh Kr Ranajn
Date: 2007-04-23 4:23:49 AM
Comment:
I think this article is very good. but i also aspect to you u give the article in both the languages vb.net or C#.

you do something different.
Thanks.
Title: trainee s/w enginner   
Name: sandhya
Date: 2007-04-23 1:26:09 AM
Comment:
article is good


sir i want code in c# plzz....
Title: trainee s/w engineer   
Name: Silgia
Date: 2007-04-19 5:49:46 AM
Comment:
This article is good
Title: developer   
Name: Ajith
Date: 2007-04-05 5:36:34 AM
Comment:
What to you mean by PersonImage.

This type of error is what i get when i use item method
Error 4 'System.Data.SqlClient.SqlDataReader' does not contain a definition for 'Item'

How we convert this step in c#
Response.BinaryWrite(myDataReader.Item("PersonImage"))
Title: User's FeedBack   
Name: Bhaskar Datta
Date: 2007-03-23 1:51:07 AM
Comment:
The article is awesome and really very helpfull. Moreover my requirement is fullfilled by it. Thanks to the writer of this article.
Title: C# ASP.NET   
Name: Nisha
Date: 2007-03-21 7:39:32 AM
Comment:
Good!

Could u convert this to C# ?
Title: trainee s/w engineer   
Name: anisa.k
Date: 2007-02-22 1:56:44 AM
Comment:
this article helps me but i want without using stored procedure
Title: Developer   
Name: diana
Date: 2007-02-18 11:47:17 PM
Comment:
What to you mean by PersonImage.

How we convert this step in c#
Response.BinaryWrite(myDataReader.Item("PersonImage"))
Title: query   
Name: chaitanya
Date: 2007-02-08 12:54:03 AM
Comment:
i am using this code to store anytypefile into sqlserver,i took the related column type in database as sql_variant but i got an error like "parameter exceeds the size limit" it would be of 8000 maximum for any column in sqlserver.please give me solution as per as possible to
rajukalidindhi@gmail.com
Title: Wonderful Articl   
Name: Ashish Gandhi
Date: 2007-02-07 3:59:59 AM
Comment:
You Really provided a wonderful way for achieving the desired thing to insert and retrieve image.

Thanks...
Title: Trainee   
Name: samapth
Date: 2007-02-07 2:23:09 AM
Comment:
good for us
Title: how t o insert into aqlserver   
Name: p.n.swamy
Date: 2007-02-02 2:44:24 AM
Comment:
The Article is very good. I always used to wander how to use image datatype in sql server. This article is very informative and the code provided with it made the things very easy
Title: developer   
Name: krishna
Date: 2007-01-25 2:04:01 PM
Comment:
how u do i do with c#

very very very good
Title: converting this code into c#   
Name: prajnadash
Date: 2007-01-11 6:46:57 AM
Comment:
Can you please tell me how to write the same code in C#.Also is there any tool available to convert vb.net code inti c# language.

My e-mail address is
prajna.dash@lionbridge.com
Title: converting this code into c#   
Name: prajna dash
Date: 2007-01-11 6:42:00 AM
Comment:
Can you please tell me how to insert the image into a databasetable in asp.net using c#
Title: doveloper   
Name: shipra
Date: 2007-01-05 7:31:44 AM
Comment:
how to upload image in C#.Net
Title: developer   
Name: suresh
Date: 2006-12-12 3:49:27 PM
Comment:
your article is very good try to add more things example

database connection ,validation controls, string convert
Title: developer   
Name: sovan
Date: 2006-12-02 4:46:34 AM
Comment:
I have applied this coding in my asp.net1.1 project. now we are converting this project to vs.net2005 asp.net2.0. image upload has been done and show image in page in local. but when we upload to client area image not uploaded or shown in web page.
i am using master page for this project. and i have writtent enctype="maltipart/data" in master page.
Title: Developer   
Name: Shankar[kctshan@yahoo.co.in]
Date: 2006-11-09 6:42:07 AM
Comment:
Hi Das....

Thank You for gave this article to all persons...its very usefull for each and every persons who are all working in ASP.Net Projects..and to me also...one doubt ..if we store more images in sql server wat abt the speed of retrival?i think speed ll dec..bec am doing ERP project for 3000 clients in a centralized database.so i want to store all employees images into tat single database.if u have time reply.....
Title: developer   
Name: Satish
Date: 2006-11-07 4:22:53 AM
Comment:
Sir i want to know this code in C#.....plzzzz send me this
Title: Chirkot   
Name: err
Date: 2006-11-01 9:27:44 AM
Comment:
Good one

Gaurav C Anand
Title: Excellent   
Name: Gaurav
Date: 2006-11-01 9:26:34 AM
Comment:
The Above Artice has helped me a lot

It is an excellent article
Title: developer   
Name: Ajit Kumar
Date: 2006-10-28 4:53:59 AM
Comment:
Thanks,It quite eassy to implement.
Title: Store Image   
Name: Abdul Basit
Date: 2006-10-10 5:23:57 PM
Comment:
This piece of code works well, but it didn't tell the function about the retrieving image from database.
Title: Using Images in DataGrid   
Name: Manikandan
Date: 2006-10-09 4:55:01 AM
Comment:
I want to use images in DataGrid, It should bound for every row. How to do
Title: insert image into sql using c# language   
Name: ms leesa
Date: 2006-10-04 1:04:26 AM
Comment:
how to insert image into sql server using c# language n retrieve it again into datagrid......
i do not know how to convert vb language into c#...can u help me?
Title: uploading video files   
Name: paramasivam
Date: 2006-10-03 6:04:36 AM
Comment:
hi das



how to upload a video files to sqlserver 2005. using asp.net web form2.0.also i want to retrieve the video files from the database. pls help me

regards
param
Title: Add images to existing table   
Name: Auntie Mom
Date: 2006-09-29 10:06:06 AM
Comment:
How would I modify the example and stored procedure to add images/pdf or other doc types to an existing sql db table? The table has a PK and needs pdf and possibly images added.

Thx.
Title: i have big problem   
Name: Tarun Dabral
Date: 2006-09-22 7:40:21 AM
Comment:
sir , i have a big problem sir why are not used in client side just like PersonImage.PostedFile.ContentLength not working because error has obtained in object reference
plz help me
Tarun Dabral
Title: Inserting an Image to SqlServer Database.   
Name: venkatesh
Date: 2006-09-22 3:24:57 AM
Comment:
I want to store images from the backend.How to do it?
Title: image   
Name: subhendu
Date: 2006-09-19 2:59:43 AM
Comment:
good coding
Title: Developer   
Name: Eman Ahmed
Date: 2006-08-17 6:52:49 PM
Comment:
Dear Das,
i found your paper very useful to my
but can i ask you something i also want this code in C# can u plz send....?
thanx for your time
Title: insert image   
Name: ashmi
Date: 2006-08-12 5:13:23 AM
Comment:
ya sir like sujal, i also want this code in C# can u plz send....?
Title: Image insert   
Name: sujal gaur
Date: 2006-08-08 3:16:19 AM
Comment:
Sir i want to know this code in C#.....plzzzz send me this
Title: Developer   
Name: Sindhu
Date: 2006-08-03 6:19:00 AM
Comment:
I found the article very useful. Understanding it was easy as u have exemplified it and also explained well.
Thank u so much, The purpose of the article is well served.
Sindhu
Title: I am not able to download application/octet-stream and text/plain type files using the code   
Name: vikram_boinapally@isb.edu
Date: 2006-08-03 12:23:20 AM
Comment:
Article is really fentastic.
But,I am not able to download application/octet-stream and text/plain type files using the code
Title: Uploading image in SQL2000 and reterving Them Want solution   
Name: Avinash
Date: 2006-08-02 6:24:41 AM
Comment:
If You have any Solution please mail On Above mailing Address
Title: developer   
Name: Man
Date: 2006-07-24 8:37:28 AM
Comment:
problem:
Some Other event call by form then PersonImage is clear
pls solution req.
id:mangesh_taware@yahoo.com
Title: developer   
Name: Kalyan
Date: 2006-07-15 8:54:43 AM
Comment:
This is good
Title: new   
Name: cash
Date: 2006-06-22 6:26:54 AM
Comment:
pls give this in C#.net also
Title: security   
Name: yyy
Date: 2006-06-20 4:59:40 AM
Comment:
Hi, can someone please tell me why saving images in the dataBase is safer?
Title: without using stored procs   
Name: Anwar
Date: 2006-05-21 7:40:52 AM
Comment:
Somebody plz give a soln for thw same problem without using stored procs...i meant embedded queries...i tried using embedded qryis but it errs.
Title: developer   
Name: Ibrahim
Date: 2006-05-14 6:37:25 AM
Comment:
Thaaaaaaank You very much :)

u r profitional developer in this world
Title: Software Developer   
Name: Obaid Ullah
Date: 2006-04-24 9:11:50 PM
Comment:
HI, Its very nice article. It helped me a lot in better understanding of inserting and retrieving images in database. Now I can play with images in databases. Thanks for your help.
Title: Developer   
Name: Golu
Date: 2006-04-18 7:17:47 AM
Comment:
I like the way you are thinking....
Title: developer   
Name: Monir
Date: 2006-04-13 7:38:09 AM
Comment:
hai
thank u for ur code but i need the code for inserting images adn displayging in MSSQL Server from VB.NET then it will be much more useful to me.thank u
monir
to_monir@yahoo.com
Title: Mr.   
Name: Gboyega Olusanya
Date: 2006-03-28 6:48:13 AM
Comment:
Thanks a lot for your article.It is really very nice.You've assisted me in solving my problem.
Title: gud   
Name: anil
Date: 2006-03-23 9:12:12 AM
Comment:
it's gud ,but
how can we do in MS-Access?
Title: Required Help   
Name: noor
Date: 2006-03-22 4:35:20 AM
Comment:
If we select a image using FILE FIELD(HTML Control) the image should display in the IMAGE(HTML Control)
How possible it is in asp.net
Title: Inserting Images into sql-server   
Name: sai
Date: 2006-03-18 1:06:15 AM
Comment:
Hai,
The article "Inserting Images into sql-server" is very helpful for me. Thanks a lot!!!
Title: i have got a problem plz do help   
Name: priya(daeju_veena@yahoo.com)
Date: 2006-03-14 6:58:39 AM
Comment:
hai ,
i am doing my project in oracle forms and reports.
i want to store the "pdf files" into the oracle table and retrieve them and display them.is there any posibility,anybody knows plz give me the code for processing.
Title: i have got a problem plz do help   
Name: priya
Date: 2006-03-14 6:54:52 AM
Comment:
hai ,
i am doing my project in oracle forms and reports.
i want to store the "pdf files" into the oracle table and retrieve them and display them.is there any posibility,anybody knows plz give me the code for processing.
Title: Retriving images from database   
Name: Pritam
Date: 2006-03-14 5:49:47 AM
Comment:
This is a very useful code i was searching for.
Title: Very Fine!!!   
Name: Priya
Date: 2006-03-14 12:53:18 AM
Comment:
Its very good. its very useful to us.. keep it up!!!
Title: how to stored image in database using asp   
Name: ashish
Date: 2006-03-09 6:11:55 AM
Comment:
how can do this asp
Title: photo in vb.net   
Name: Nithya
Date: 2006-03-02 5:57:47 AM
Comment:
hai this article of urs is by using stored procedure.
can u help me to store an image without stored procedure in binary format in sql?
thanxs
and with regards nithya
Title: Analyst   
Name: Aziz Ahmed
Date: 2006-03-01 2:07:56 AM
Comment:
Good effort
How can we do it by using php
Title: Nice Job   
Name: Harpal Singh
Date: 2006-02-24 7:47:46 AM
Comment:
Dear Sir,
You have done gr8 job and good info for the defelopers

Keep going
cshack8@yahoo.com
Title: very nice sir   
Name: vivek
Date: 2006-02-24 4:53:31 AM
Comment:
this type of examples give good courage and help

thanks, my email is a9soft@yahoo.com
Title: While trying this is in Asp.net(C#) -Error   
Name: bhavani.k(kabhavani@gmail.com)
Date: 2006-02-02 6:30:46 AM
Comment:
The insertion to sql server is working fine. While i try for retreival it gives an error in asp.net using C#. if u want i send my code also.pls give a solution.
Title: Inserting Images to SqlServer in ASP .NET   
Name: Steven Galione
Date: 2006-01-03 11:12:01 AM
Comment:
Could you produce a downloadable version for MS Visual Web Developer Express & SQL Express? Many thanks, Steve. For example a vsi program that auto installs like the "Personal Web Page" example by Microsoft.

steven_galione@hotmail.com
Title: Developer   
Name: Faiq Shah
Date: 2005-12-22 12:28:51 AM
Comment:
This was one of the most informative article, that can help thousands of underexperienced programmer.
keep it up Jesudas Chinnathampi (Das)
Title: thank you   
Name: johnny
Date: 2005-12-15 1:34:12 AM
Comment:
thank you so much its working!
Title: Verry God   
Name: Gerardo Murillo M
Date: 2005-11-27 11:22:03 PM
Comment:
Verry god sample!
Best Regards
THX
Title: Your Article is very good   
Name: Rizwan Ahmed Butt
Date: 2005-11-15 2:56:39 AM
Comment:
Your code solve my problem to store the image in sql-server.


Thanks
Title: developer   
Name: Yogesh
Date: 2005-11-14 1:45:17 AM
Comment:
how we convert this step in c#

Response.BinaryWrite(myDataReader.Item("PersonImage"))
Title: developer   
Name: nino
Date: 2005-10-28 8:35:35 AM
Comment:
everybody ....please help me, i can not do how to insert image into SQL ,because they ask me where "Dim ImageContent(intImageSize) As Byte" , this is the coding doesnot see.

if someone who can use this coding, please tell me all steps i need to do for inserting images into DATA BASE (SQL)

thank you so much
HUU LOC
Title: Contact me for any query   
Name: Ahijeet pandakar
Date: 2005-09-21 5:24:03 AM
Comment:
i am a very much .net developer.if you have any query in .net then please mail me to this mail address:
abhipandkar@yahoo.co.in
Title: Contact me!   
Name: Manish
Date: 2005-09-21 5:13:18 AM
Comment:
Hello , i am a .net developer.I am eager to help u. if you have any problem in .net, contact me at
manishtekade@rediffmail.com
Title: Good article!   
Name: Abhijeet
Date: 2005-09-21 5:10:55 AM
Comment:
Yr article is good . keep it up.
thankz.
Title: storing flv or swf or video file   
Name: chua
Date: 2005-09-12 11:20:20 PM
Comment:
Hi,
I was wondering how to modify the above if we want to store flv or swf or video file instead of image file in database?

How do we do that ?

Thanks
Title: how to read pdf files from database   
Name: sree
Date: 2005-08-28 5:36:36 AM
Comment:
The above article is very good.but opening pdf files the files are not opening ..what is the problem. Eventhough reader is installed .
Title: Not a good way of retrieving image   
Name: manab
Date: 2005-08-23 3:08:24 AM
Comment:
Was Not a good way of retrieving image
Title: devloper   
Name: patel mayank
Date: 2005-08-03 12:59:11 AM
Comment:
how is it possible with sttuts
Title: aspiring developer (got it)   
Name: Obadiah Mogan from Jamaica
Date: 2005-07-22 10:19:34 AM
Comment:
hey das. i am not a "dedicated" programmer... but i do know how to program in quite a few languages. i am an amateur....but i want to develope an online store using asp.net. is this possible? and also, can i get it to look like the other online stores cuz so far menus and so on r a pain.
i know ur probably have no time to ans me but seeing that u r an expert i had to try....but i hope u do :)

P.S
keep up the good work, ur articles helps a lot of my friends

ricom_19@yahoo.com
Title: Very nice tut indeed   
Name: ronnie
Date: 2005-07-09 8:52:59 PM
Comment:
Hey! pretty kool tutorial Das. The tut I've been lookin' for`. My search ended here. thnx again
Title: File Field   
Name: Thiyagarajan.B
Date: 2005-07-09 1:38:45 AM
Comment:
Sir
If we select a image using FILE FIELD(HTML Control) the image should display in the IMAGE(HTML Control)

For that what to do Sir.
Title: Great Article   
Name: John
Date: 2005-06-25 8:47:08 PM
Comment:
Thank you very much for an informative, useful and practical article. Keep up the great work!
Title: MyFeedBack   
Name: Sajid Pathan
Date: 2005-06-23 2:31:59 AM
Comment:
i got this code which help to solve my problems regarding to loading/inserting/storing images in database
thank you
by by
Title: Inserting and Retrieving Images from MS Access   
Name: vijay
Date: 2005-06-12 7:11:20 AM
Comment:
hai
your code is good but if you send me the code for inserting images adn displayging in MS Access then it will be much more useful to me
Title: software engineer trainee   
Name: Madhur
Date: 2005-05-13 12:05:42 AM
Comment:
The Article is very good. I always used to wander how to use image datatype in sql server. This article is very informative and the code provided with it made the things very easy
Title: THANKS A LOT...!!!!!   
Name: Ginny Johney
Date: 2005-03-31 7:49:45 PM
Comment:
The code was very helpful.Thanks.........
Title: how store the images in ORACLE database using asp.net   
Name: baskar
Date: 2005-03-30 4:26:58 AM
Comment:
hi
ur code very helpful for me,pls give code for
"how store the images in ORACLE database using asp.net"
this for very urgent im beginner in .net

pls help me

mail me at basvbas@yahoo.com

thanks
Title: Displaying images from database   
Name: charles
Date: 2005-03-28 3:06:14 PM
Comment:
Please i would love it very much if u can explain how i can retrieve an image from an access database

my email is ejedspence@yahoo.co.uk

Thanks and God bless
Title: Inserting Images to oracle server in ASP .NET   
Name: moiz
Date: 2005-03-15 10:52:23 AM
Comment:
I am trying to Inserting Images to a table in oracle server using the save way as above, using a file control. If anyone is familiar, please help.


Moiz
Title: How to retrieve image   
Name: karthi
Date: 2005-03-08 10:38:22 PM
Comment:
Hello Das,
your coding is really superb.It is a very helpful information to me.

I want the codings to retrieve image from sql server.please suggest me to (su_it04@yahoo.com)
Title: Developer   
Name: Jeffrey A. Prado
Date: 2005-02-16 2:28:55 AM
Comment:
Very helpfull info.
Thank you so much!.
:-)
Title: Educator   
Name: Maitreya Bhatt
Date: 2004-12-14 8:48:04 AM
Comment:
Dear Mr. Das,

I have read ur article at aspallience site. found it very informative.

but i need to store image in MS-Access. Tried to do this using HttpFileCollection it does not give any error but does not insert image eigther!!

If u any info pl do suggest me.

Thank you,

Regards,
Maitreya Bhatt
Title: Developer   
Name: Aromsay Chanthasoto
Date: 2004-12-10 1:02:43 PM
Comment:
Your program is good. But how do you retrieve an image from one database and store into another database on asp net? Right now I have problem with it.
Title: Very Very Good   
Name: Tooraj
Date: 2004-11-24 1:50:04 AM
Comment:
This was my problem to saving personal photos in sql-server and this article solved my problem.
Title: seeking enquries   
Name: wow
Date: 2004-11-22 12:32:16 AM
Comment:
What to you mean by PersonImage. i have errors after pasting the codes.
Title: Got a problem   
Name: Amin
Date: 2004-10-28 3:30:52 PM
Comment:
Anybody out there wanna help me with the following error?

"Object must implement IConvertible."
Title: Good   
Name: Craig
Date: 2004-09-23 9:48:17 PM
Comment:
I was wondering how you would find the width and height of the image as well?
Title: developer   
Name: Hector Ivan DAvalos Guizar
Date: 2004-09-21 1:49:37 PM
Comment:
and how do I do this with JSP's?






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-03-19 5:32:35 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search