Hi,
I'm new to asp.net programming and would like to get help on how to upload a picture on a user's profile (new record) and then be able to display in on that user's (view page). The picture will be uploaded when creating the user record and only visible when clicking on the "record page" of the specific user.
Thank you very much.
Khargesh RajputPosted Mar 26, 2015, 12:00 AM
and also visit below articles on c-sharp corner
http://www.c-sharpcorner.com/UploadFile/satyapriyanayak/add-details-of-an-employee-with-image-and-display-it-into-a/
http://www.c-sharpcorner.com/UploadFile/satyapriyanayak/how-to-save-image-along-with-details-into-database-in-asp-ne/
also
http://www.aspsnippets.com/Articles/Retrieve-images-using-a-file-path-stored-in-database-in-ASPNet.aspx
Pankaj Kumar ChoudharyPosted Mar 25, 2015, 9:56 PM
For Image you have two option
1. You can directly save image in database advantage of this method is that you not need any other folder for saving of image and image will be safe in DB but it's biggest disadvantage is that it will increase the load of your DB.
2. You can save the path of image in DB. Mostly programmer refers this method and save the image in a particular folder.
after saving the image you can retrieve you image in any page ...........
Joginder BangerPosted Mar 25, 2015, 5:19 PM
first of all welcome to c-sharpcorner family. First we create a table for hold the data. The table looking like
create table TableName(id int,UserName varchar(max),password varchar(max),PathOfImage varchar(max));
some data only when user create the login, Like a facebook.
insert into TableName values(1,'Patriack','Testing');
after the insert values table looks like.
id UserName Password PathOfImage
1 Patriack Testing Null
After the login the insert the pathofimage set of column.