Skip to content

Conversions fails when using memory stream from docx to MD file #85

@rishi1212

Description

@rishi1212

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;

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

"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions