本文介绍了无法传达图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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;
}

它的givng输出如{0,0,..... 0}

its givng output like{0,0,.....0}

推荐答案


这篇关于无法传达图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 07:16