How Images or files are stored in Servicenow???

sunilsargam
Tera Guru

When we are attaching any file or image, it is stored in sys_attachment/ db_image table. I would like to know how we can read that file into third party system. 

 

If the files are encoded with base64, how we can convert them while trasferring to third party system. 


Thank you

Sunil

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @sunilsargam 

 

https://www.servicenow.com/community/developer-forum/how-to-convert-source-image-into-base64-format-....

https://www.servicenow.com/community/training-and-certifications/how-to-get-the-base-64-encoding-of-...

 

 

https://www.servicenow.com/docs/bundle/yokohama-platform-user-interface/page/administer/navigation-a...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Animesh Das2
Mega Sage

Hi @sunilsargam ,

 

ServiceNow converts the files to Base64 format before storing or sending them using REST.

 

I'd recommend that keep the file/image base64 encoded only before sending to third party via REST APIs and the third party system can use scripts/APIs to convert/decode into file/image and access or store at their side. It would be a secured file transfer between systems.

 

If you really need to send the image decoded then @Dr Atul G- LNG has already shared few links and I have found one more community link might be useful to you.

Decoding base64 

 

If this address your question, please don't forget to mark this response correct by clicking on Accept as Solution and/or Kudos.

You may mark this helpful as well if it helps you.

Thanks, 

Animesh Das