Как включать wxi файл в wxs?

public byte[] BufferFromImage(BitmapImage imageSource)
{        
    Stream stream = imageSource.StreamSource;
    byte[] buffer = null;

    if (stream != null && stream.Length > 0)
    {
        using (BinaryReader br = new BinaryReader(stream))
        {
            buffer = br.ReadBytes((Int32)stream.Length);
        }
    }

    return buffer;
}

был бы иначе, но различие, это имеет меньше байтов [x], чем первое решение

18
задан Community 23 May 2017 в 12:33
поделиться