Skip to content

Can we send byte array to Gotenberg #481

Answered by muhyilmaz
muhyilmaz asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@muhyilmaz
Comment options

@onedram
Comment options

@muhyilmaz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by muhyilmaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants