HttpPostedFileBase filel if (filel != null) { logofilename = Path.GetFileName(filel.FileName); logobytes = new byte[filel.ContentLength]; logoBytestoRead = (int)filel.ContentLength; logonumBytesRead = 0; while (logoBytestoRead > 0) { int n = filel.InputStream.Read(logobytes, logoBytestoRead, logonumBytesRead); if (n == 0) break; logonumBytesRead += n; logoBytestoRead -= n; } objc.CompanyLogo = logobytes; }
logoBytestoRead
logonumBytesRead
read
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)