There are two options , either physically save image & video files on a relative path in the server and just store the path of the file in DB . While retriving the file use the path to show the file .For example for image , bind Imageurl field with the db
path coumn and u can see the image on web page .
Or store files in in SQL server database and fetch it to show on page :
ihimanshus
0 Points
2 Posts
how to store uploaded image file into sql server and show that file through the DB into image con...
Apr 14, 2012 10:31 PM|LINK
Im making a website project like www.zedge.net so i want that a user can upload a image file , video file etc and anyone can download it...
for that, i want that the file uploaded by the user should automaticaly onto a image control
and i also want to know how to create a new aspx page and image control automaticaly when all the images are uploaded on that page...
thank you
himanshu sareen
priyankasriv...
Member
258 Points
44 Posts
Re: how to store uploaded image file into sql server and show that file through the DB into image...
Apr 15, 2012 06:51 AM|LINK
There are two options , either physically save image & video files on a relative path in the server and just store the path of the file in DB . While retriving the file use the path to show the file .For example for image , bind Imageurl field with the db path coumn and u can see the image on web page .
Or store files in in SQL server database and fetch it to show on page :
http://forums.asp.net/t/1103375.aspx/1
Visit My Site
My Blog
ihimanshus
0 Points
2 Posts
Re: how to store uploaded image file into sql server and show that file through the DB into image...
Apr 15, 2012 01:07 PM|LINK
thank you vry vry much........got the 2-3 wayz to do the thing.........thnx a lot......
sjnaughton
All-Star
27308 Points
5458 Posts
MVP
Re: how to store uploaded image file into sql server and show that file through the DB into image...
Apr 16, 2012 02:00 PM|LINK
If you are doing this in Dynmaic Data then you will need a Custom field template, I can direct you to these if that is what you are trying to achive.
Always seeking an elegant solution.
Baiju EP
Member
176 Points
419 Posts
Re: how to store uploaded image file into sql server and show that file through the DB into image...
Jul 06, 2012 03:55 PM|LINK
dear sjnaughton
can u guide me
sjnaughton
All-Star
27308 Points
5458 Posts
MVP
Re: how to store uploaded image file into sql server and show that file through the DB into image...
Jul 09, 2012 08:12 AM|LINK
Hi there, have a look at my articles here
it's a good start a bit dated but still valid also see the free 8. Using ASP.NET Dynamic Data
Always seeking an elegant solution.