xxxxプログラマのメモ

先人に感謝と敬意:自分の困ったこと調べたことのメモ

Multipartsection to MemoryStream

await using (MemoryStream memoryStream = new MemoryStream())
{
	var fileMultipartSection = section.AsFileSection();
	await fileMultipartSection.FileStream.CopyToAsync(memoryStream);
	memoryStream.Position = 0;
}

stackoverflow.com

Thanks!