Applet: C # implements SQL Server to store photos and read photos
Build database: 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4C/D2/wKiom1RF2lDAQIRPAAAOn3FO4as090.jpg "title=" Qq20141021115944.png "alt=" Wkiom1rf2ldaqirpaaaon3fo4as090.jpg "/>;
Build a table: 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/4C/D2/wKiom1RF2q_i3NW_AAANUVaL2Wc003.jpg "title=" 11.png "alt=" wkiom1rf2q_i3nw_aaanuval2wc003.jpg "/>,650) this.width=650; src=" Http://s3.51cto.com/wyfs02/M00/ 4c/d3/wkiom1rf2t2jg1zbaacqhhvuliw521.jpg "title=" 22.png "alt=" Wkiom1rf2t2jg1zbaacqhhvuliw521.jpg "/>
New stored procedure: CREATE PROCEDURE Sp_insertphoto2
@name as VARCHAR (50),
@image as Image
As
INSERT into Photps (Name,photo)
VALUES (@name, @image)
RETURN @ @identity
GO
The program is in the attachment.
C # implements SQL Server to store photos and read photos