Hi all,
hop any one can help me,
i am using the following coding to upload files to the sqlserver dirctly no need to save, but i get error on line
foreach (UploadedFile file in UFile.UploadedFiles)
{
byte[] imgbytes = new byte
[file.InputStream.Length]; // I get error on this line, can any one help me, it dos not accept this line. file.InputStream.Read(imgbytes, 0, file.InputStream.Length);
try
{
DB.Image("insert into projectsimages (image,id) values(@picture,'1')"
, imgbytes);
}