Convert Attachment as Binary files.

ersureshbe
Giga Sage
Giga Sage

Hi,

Is it possible to convert service now attachment as binary files using script. If yes, can you share any test script? I've analysed Service now provide capability to convert base64 and bytes. 

Regards,

Suresh

Regards,
Suresh.
11 REPLIES 11

Hi Suresh,

Both bytes and binary data are different.

What is your requirement here?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur,

Thanks for your info. I want to convert attachment as binary file?

Regards,

Suresh

Regards,
Suresh.

Hi Suresh,

please check below link:

https://community.servicenow.com/community?id=community_question&sys_id=6cabff34db666780fb115583ca96...

What exactly needs to be done with ServiceNow once you get the binary data?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur,

Thanks for your info. It shows service now attachment structure. It doesn't clears how to convert binary file. 

Regards,

Suresh

Regards,
Suresh.

Hello @Ankur Bawiskar 

I have a similar query, i have the binary data from an end point, i need to create attachment using that content.