In an ASP.NET form I have a ListView control in which one of the columns is a Varbinaty(max)
value.
The problem is when I try to handle this value.
What I suggest here is,try to create a sproc in sql server to update the varbinary fields.And from asp.net just pass the parameters to sproc and for varbinary field just use the string datatype in asp.net.I mean assign the value to the string datatype and pass it to the sproc.
Now sproc will update the required fields in the table.
Try to use SqlBinary as the type? (Not sure, and no access to a dev machine atm.)
<asp:Parameter Name="FOTO" Type="SqlBinary" />