Sagar Hiray
09/02/2025, 7:33 AMfile.getContents()
it returns the file content as Base64. When I send that directly in the multipart/form-data
body, Jira stores the attachment as-is (Base64 string) instead of recognising it as a valid PDF.
Has anyone solved this before?
Thanks in advance!Xmun
09/02/2025, 7:34 AMSagar Hiray
09/02/2025, 7:42 AM/rest/api/2/issue/{issueIdOrKey}/attachments
). From NetSuite I only get the file in Base64 via file.getContents()
. Do you know if Jira expects the raw binary stream there, or is Base64 with Content-Transfer-Encoding: base64
acceptable?Xmun
09/02/2025, 7:52 AMSagar Hiray
09/02/2025, 7:53 AM