Saving Images
-
How do i save images into a database if i don't want to use the path name of the image
-
How do i save images into a database if i don't want to use the path name of the image
convert the image into the byte array using memory stream and store in the database. Regards Azeem
-
How do i save images into a database if i don't want to use the path name of the image
Hi, Here is the procedure for saving the image to the DataBase using SQL Server: 1. Get the content length of the image that is to be uploaded 2. Create a byte[] to store the image 3. Read the input stream of the posted file 4. Create a connection object 5. Open the connection object 6. Create a command object 7. Add parameters to the command object 8. Execute the sql command using the ExecuteNonQuery method of the command object 9. Close the connection object. You may refer to this[^] article for more information on this. Hope this helps.
Vinay ComponentOne LLC. www.componentone.com