ストアドプロシージャに出力パラメータを提供したい。この出力プロシージャはを返しbyte[]
ます。どうすればよいですか?
私が次のことをした場合:
command.Parameters.Add(new SqlParameter("@Bytes", SqlDbType.VarBinary));
command.Parameters[1].Direction = ParameterDirection.Output;
私は得る:
System.InvalidOperationException: Byte[][1]: the Size property has an invalid size of 0. This stored proc works fine in SQL Server when I execute it via the SSMS option "Execute Stored Procedure).
何か案は?ありがとう