but didtnt work well!!
M in Website: and i need profile iamges of each user to be stored in databse:
so in my form i put file [browse button] and an asp button for saving :
can post codes for this?
MYsql and C#.net
pls help me!!!
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
RujutaPosted Feb 5, 2010, 5:42 AM
Now
use this code
HttpPostedFile img;
img = FileUpload.PostedFile;
Byte[] bt = new Byte[img.ContentLength];img.InputStream.Read(bt, 0, img.ContentLength);
when you use the insert query for the column with image datatype insert the value bt!
Hope this helps you.......
Lalit MPosted Feb 5, 2010, 4:18 AM
Show reference
Show here more info