ServiceNow Secure Attachment – Large Image Downloaded as Corrupted File
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi everyone,
We are facing an issue with ServiceNow Secure Attachment download.
Issue
* File upload is working successfully and the attachment record is created.
* Large/high-quality images are getting corrupted during download.
* The same image works correctly when reduced to around 300–500 KB.
* The issue is observed through the attachment download flow in both Native UI and Portal.
Current Download Flow
Client Script / UI Page / Portal Widget → SecureAttachmentUtil Script Include → Azure/SAS → File Download
The main backend download logic is handled in the SecureAttachmentUtil Script Include.
Could someone advise on the correct way to handle large binary attachments returned from Azure/SAS in ServiceNow?
