Attachment API GET Uploading File to Amazon S3 Bucket

skiiclub
Mega Contributor

Hi all, 

I'm currently using the ServiceNow Attachment API /now/attachment/{sys_id}/file to download a specific attachment from a record. As you can see below I'm able to get the binary string back as a result.

Screen Shot 2022-10-31 at 2.58.14 PM.png
My question is, what can I do with this body? Is there any way to take this response and upload the actual file to an s3 bucket?

Here are the headers I receive as a response. 

Screen Shot 2022-10-31 at 3.02.35 PM.png



Any help would be appreciated here, I've been stuck on this for awhile. 

1 REPLY 1

rahulpandey
Kilo Sage