Click here to Skip to main content
15,905,686 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i had created file upload controller dynamically and save image to the database.
after that i want to display that image when user want to edit record.
Posted
Comments
PRAKASH9 2-May-13 5:36am    
so what's the error occur please define.
KM Perumal 2-May-13 5:52am    
post ur code

1 solution

foreach (Control ctrl in placeHolder.Controls)
{
if (ctrl is FileUpload)
{
FileUpload fUl = (FileUpload)ctrl;
postedFile.Add(fUl.ID, new byte[fUl.PostedFile.ContentLength]);
}
}

after that i add that file with IDictionary but the problem is that i am not able to establish a logic to retrieve the image from database.
 
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