I’m trying to pull an image from ServiceTitan to upload to Google Drive or SharePoint and am running into issues with converting the binary image data I receive in the image request API step.
This is the data I receive:

I then run this through a Code by Zapier step to convert it into Base64 format:

I’ve also tried reading the binary data as utf-8 and latin1.
I’m then given a data payload that looks like this:

I then take that “File Data” and try uploading to Google Drive:

(I’ve tried this with jpg extensions as well).
But when the image arrives in Google Drive, it is a blank image (it does have data though):

I also can’t email this data, it shows up as a txt file.
Am I missing a step in here to properly upload the image data into Google Drive? Should the conversion function in Code by Zapier be handled externally? Looking for any answers or direction on this, I’ve tried a wide variety of python and javascript code to achieve this and still nothing.
Thank you all in advance.