-
I am trying to convert my bytearray docx file to pdf. Is there any option to send my docx file as byte array to your API. I cannot give path to API, I have just byte array data of my file/files. Note: I am using dotnet core 6, c# ... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello @muhyilmaz, There is no need to send a file path. Just use your favorite C# HTTP client, create a You may also want to check the code from https://github.com/Jaben/GotenbergSharpApiClient. |
Beta Was this translation helpful? Give feedback.
-
Just use another method of multipartContent: Change |
Beta Was this translation helpful? Give feedback.
Just use another method of multipartContent:
not 'Add(HttpContent content, string name)'
but this one:
Add(HttpContent content, string name, string fileName);
Change
multipartContent.Add(byteArrayContent, $"file.{ext}")
to
multipartContent.Add(byteArrayContent, "file", $"file.{ext}")
@onedram @gulien thanks for answer