Just wanna ask what is the code to upload image to database is it the same as inserting values in table data?can you give me example codes how to upload image to database?A friend of mine said i should use XML for my image upload.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
advice : do not store image on db.
store their path.
now , for your question :
you should convert the image into byte array :
something like :
now , in the sql (server i assume , ) make a varbinary column
and just pass the byte array into this column.
thats all.