How to pass byte array as update parameter in SqlDataSou开发者_StackOverflowrce control?
Stream fs = FileUpload1.PostedFile.InputStream;
BinaryReader br = new BinaryReader(fs);
Byte[] bytes = br.ReadBytes((Int32)fs.Length);
You can pass the value as you do with normal parameter value, however you have to Set Type="Object"
<UpdateParameters>
<asp:Parameter Name="" Type="Object" />
</UpdateParameters>
精彩评论