i have a stored procedure which returns single column of datatype image.stored procedure is added to linq to sql class.how can i create byte array from the stored procedure using linq to sql.
stored procedure is
create procedure selecttempimage
@user_id bigint
as
begin
select user_image from Temp_Image where users_id=@user_id
end
linq to sql generated method is
[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.selecttempimage")]
public ISingleResult<selecttempimageResult> selecttempimage([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="BigInt")] System.Nullable<long> user_id)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), user_id);
return ((ISingleResult<selecttempimageResult>)(result.ReturnValue));
}
thanks in advance.