You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using (MemoryStream memoryStream = new MemoryStream())
{
using (Converter converter = new Converter(() => new MemoryStream(bufferContent)))
{
var convertOptions = converter.GetPossibleConversions()["md"].ConvertOptions;
converter.Convert(() => memoryStream, convertOptions);
}
bufferContentConverted = memoryStream.ToArray();
log.LogInformation("The Conversion was successful of file length", string.Empty);
}
contentBase64Converted = Convert.ToBase64String(bufferContentConverted);
return new OkObjectResult(contentBase64Converted);
"
The text was updated successfully, but these errors were encountered:
rishi1212
changed the title
Conversions fails when using memory stream
Conversions fails when using memory stream from docx to MD file
Dec 18, 2022
My sample code :
"
string contentBase64Converted = String.Empty;
using (MemoryStream memoryStream = new MemoryStream())
{
using (Converter converter = new Converter(() => new MemoryStream(bufferContent)))
{
var convertOptions = converter.GetPossibleConversions()["md"].ConvertOptions;
"
The text was updated successfully, but these errors were encountered: