saving image in sql database
-
Hi all, i want to know how to store image in SQL database from asp.net page then retrieve and display it in another page. please answer me as soon
I would not recommend storing images in your database because of performance issues. Store the URL of the image instead and store the image itself just as a file somewhere on your webserver.
I love it when a plan comes together http://www.zonderpunt.nl[^]
-
Hi all, i want to know how to store image in SQL database from asp.net page then retrieve and display it in another page. please answer me as soon
http://www.codersource.net/csharp_read_write_images_database.aspx[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
http://www.codersource.net/csharp_read_write_images_database.aspx[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
Thanks for your reply, this article toke about Windows Application and i need Web page, i think it differ, so if you know any thing please tell me
Saving image into database is not a good idea.I recommend u to save image ina specific folder and save its file name in the Database. if u want to save this file in database first u convert it to byte arrya nad save it. In the database(MSSQL 2005) the datatype of that filed is varbinary(MAX). I hope you are using asp:FileUpload control for uploading the file.It have a proeprty named FileBytes, we can convert this file into binary byte[] FileData; FileData=FileUpload1.FileBytes; and u can inert this binary arry to DB I hope this ll help u
All I ever wanted is what others have.... CrazySanker
-
Hi all, i want to know how to store image in SQL database from asp.net page then retrieve and display it in another page. please answer me as soon
Saving image into database is not a good idea.I recommend u to save image ina specific folder and save its file name in the Database. if u want to save this file in database first u convert it to byte arrya nad save it. In the database(MSSQL 2005) the datatype of that filed is varbinary(MAX). I hope you are using asp:FileUpload control for uploading the file.It have a proeprty named FileBytes, we can convert this file into binary byte[] FileData; FileData=FileUpload1.FileBytes; and u can inert this binary arry to DB I hope this ll help u All I ever wanted is what others have.... CrazySanker
All I ever wanted is what others have.... CrazySanker