I want to store pdf file inside sql server 2008R2. ORM is nhibernate so my property is
public virtual byte[] PDFFile { get; set; }
and it is mapped like
Property(x => x.PDFFile);
inside database column is of type varbinary(MAX)
I think problem resides in the mapping of this property but I dont know how to overcome this.
On upload I'm getting
The length of the byte[] value exceeds the length configured in the mapping/parameter.