Click here to Skip to main content
16,020,261 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i'm new here... i want some sample code for Storing image into database and retrieving it from the database ,, i want to upload(user image) it at a time of registration and load back to web page after sucessfull login of user.... help me please..
Posted
Comments
Nelek 27-Feb-13 2:53am    
This is not how CP usually works. Most important goal here is to learn and help learning.
You are supposed to try it on your own, and come here when you got stuck with something, with a concrete question about your code, design, etc.
Please have a look to What have you tried?[^] to see a good explanation about what I mean.
If we give you a ready-to-go solution, it is not going to help you.

On the other hand... this is something that you should find searching in google. I recommend you to research a bit on your own, then start trying and come back when you face a problem with a concrete question.
Orcun Iyigun 27-Feb-13 2:53am    
Well it depends. have you decided how are you going to save the iamges? Will you save them as bytes or just the path where they are stored in the server?

1 solution

Please first search your question in code project or google it..

Check this Article

Storing and Retrieving Images from SQL Server Using Strored Procedures and C#.net[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900