Hello,
I am trying to make a google sheets that, when appropriate, creates a ticket in jira's servicedesk. To communicate with the servicedesk API I am using google's apps script.
However, I am having an issue when adding a photo to the request. The photos show as the base64 encoding string opposed to want I want (the actual image).
I suppose that I am doing the encoding wrong, or the multipart/form-data format is also wrong.
The code for creating the multipart:
const boundary = 'here';
let formData = '';
formData += `--${boundary}`;
formData += `Content-Disposition: form-data; name=file; filename=${input.file.getName()}`;
formData += `Content-Type: ${input.file.getContentType()}`;
formData += Utilities.base64Encode(input.file.getBytes()) + '';
formData += `--${boundary}--`;
The result: 
This resulting file has the PNG format like the original.