Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

ServiceNow Secure Attachment – Large Image Downloaded as Corrupted File

salemrajpau
Tera Contributor

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?

0 REPLIES 0