Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Can you help me to solve this problem?
Posted
Comments
Shahriar Iqbal Chowdhury/Galib 12-Jun-11 5:38am    
what you have tried so far? What exceptions you see?Share the code
Sandeep Mewara 12-Jun-11 9:16am    
Tried anything?

1 solution

Easy - set up the field as Image (so it holds large data well) and code the generic handler to accept a byte array. You can then save the byte array to the database in the usual way. You read the bytes eitehr with the File.ReadAllBytes method, or direct as a byte stream from the FileUpload.FileBytes property.

What is the problem?
 
Share this answer
 
Comments
Banajyotsna 13-Jun-11 8:50am    
thanks a lot.I just change that field as image.after every problem solved.but sir when i want to retrieve all those .mp3 file it should display the mp3 image(music image).how is it possible?and also i want to filtrate because it is accepting .doc,.image also?what is the coding for this?
OriginalGriff 13-Jun-11 8:58am    
Entirely up to you - it will depend on how you are planning on present the info to the user. Sorry!
Banajyotsna 13-Jun-11 8:50am    
can you help me some more

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