Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 01, 2008 02:02 PM by vinz
Member
138 Points
110 Posts
Oct 01, 2008 01:25 PM|LINK
hi ,
i used this code
com1.Parameters("@P_Image").Value = FileUpload1.FileBytes
to upload image into database , it's working fien but how can i retrive it from database into data list or grid view please suggest
Star
8510 Points
1056 Posts
Oct 01, 2008 01:54 PM|LINK
Friend, here are couple of ways to achieve it
http://www.beansoftware.com/asp.net-tutorials/images-database.aspx
http://forums.asp.net/p/1252483/2318854.aspx
http://aspalliance.com/articleViewer.aspx?aId=141
Good luck!
All-Star
128470 Points
18149 Posts
MVP
Oct 01, 2008 02:02 PM|LINK
devilsuraj i used this code com1.Parameters("@P_Image").Value = FileUpload1.FileBytes to upload image into database , it's working fien but how can i retrive it from database into data list or grid view please suggest
You can use HANDLER.ASHX for displaying the images in the page.. see below for your reference:
http://www.dotnet-friends.com/articles/asp/artinasp03e650de-2b15-4fb1-9bdb-aad1a1e5ac5c.aspx http://www.gridviewguy.com/ArticleDetails.aspx?id=207_Displaying_Images_from_Database_in_GridView http://www.developerfusion.com/show/3933/
devilsuraj
Member
138 Points
110 Posts
how to retrive image from sql database to data list or grid view??
Oct 01, 2008 01:25 PM|LINK
hi ,
i used this code
com1.Parameters("@P_Image").Value = FileUpload1.FileBytes
to upload image into database , it's working fien but how can i retrive it from database into data list or grid view please suggest
cv_vikram
Star
8510 Points
1056 Posts
Re: how to retrive image from sql database to data list or grid view??
Oct 01, 2008 01:54 PM|LINK
Friend, here are couple of ways to achieve it
http://www.beansoftware.com/asp.net-tutorials/images-database.aspx
http://forums.asp.net/p/1252483/2318854.aspx
http://aspalliance.com/articleViewer.aspx?aId=141
Good luck!
This can be beneficial to other community members reading the thread.
vinz
All-Star
128470 Points
18149 Posts
MVP
Re: how to retrive image from sql database to data list or grid view??
Oct 01, 2008 02:02 PM|LINK
You can use HANDLER.ASHX for displaying the images in the page.. see below for your reference:
http://www.dotnet-friends.com/articles/asp/artinasp03e650de-2b15-4fb1-9bdb-aad1a1e5ac5c.aspx
http://www.gridviewguy.com/ArticleDetails.aspx?id=207_Displaying_Images_from_Database_in_GridView
http://www.developerfusion.com/show/3933/
MessageBox Controls for WebForms | Blog | Twitter | Linkedin