控制器:
private string ReadFileInBase64(ImageExtension extension, string fileName)
{
using (FileStream fs = new FileStream(
fileName,
FileMode.Open,
FileAccess.Read,
FileShare.Read))
{
using (var streamReader = new MemoryStream())
{
fs.CopyTo(streamReader);
byte[] fileContents = streamReader.ToArray();
string base64MimeFileContents = ConvertToBase64(extension, fileContents);
//(string MimeType, string ParsedBase64Contents) = GetBase64MimeType (base64MimeFileContents);
return base64MimeFileContents;
}
}
}
此处ImageExtension没有临时引用或using指令。 我想知道什么是ImageExtension的程序集引用。