Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi every one i made project to save iages to data base "sql server 2005"
type "*.mdf"
the data type in data base file is "image"
i used this code to save image
byte[] imageData;
<pre lang="sql">imageData = File.ReadAllBytes(@"d:\11.png");
            command = "insert into imagetable (fullname) values('aa')";
            mydata.NoReturnedValue(command);
            command = "update imagetable set visitnum='1',image='" + imageData + "' where fullname='aa'";
            mydata.NoReturnedValue(command);



but i could read this image again??
it would be very nice if the answer in code

thanks every one
Posted

1 solution

This[^] may help.
 
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