Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rishi1212 opened this issue Dec 18, 2022 · 1 comment
Open

Comments

@rishi1212
Copy link

rishi1212 commented 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;

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

"

@rishi1212 rishi1212 changed the title Conversions fails when using memory stream Conversions fails when using memory stream from docx to MD file Dec 18, 2022
@atirtahirgroupdocs
Copy link
Collaborator

atirtahirgroupdocs commented Dec 18, 2022

@rishi1212

Please share following details and we'll look into this scenario:

  1. Sample/running console application
  2. Source file
  3. API version that you are evaluating (e.g. 22.10, 22.11)

Secondly, we'd recommend you to always post back-end API related issues on GroupDocs forum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants