logo

NJP

Beyond JSON: Working with Binary Files and Alternative Content Types in ServiceNow REST APIs

New article articles in ServiceNow Community · Sep 23, 2025 · article

Most ServiceNow developers see REST as JSON-in / JSON-out but that’s just the beginning. When building the C3 app, we learned how to fetch and store binary files, securely serve images, and even generate CSV exports directly from ServiceNow. These techniques opened the door to powerful integrations that go way beyond standard JSON payloads.

In this post, I’ll break down how we handled binary image storage, custom file serving, and CSV generation with scripted REST APIs complete with code snippets and lessons learned. If you’ve ever wondered how to work with non-JSON content in ServiceNow, this is your guide to taking REST integrations to the next level.

View original source

https://www.servicenow.com/community/developer-advocate-blog/beyond-json-working-with-binary-files-and-alternative-content/ba-p/3388635