How to read attachments with more than 5 MB size, in Scoped Application ?

tejas10
Giga Contributor

Currently, ServiceNow Server API provides methods from GlideSysAttachment to read an attachment upto 5 MB size, in scoped application.

I am looking for any function(s), which can be used to read attachments which are more than 5 MB in size.

Is there anyway to develop it in ServiceNow with current releases - Geneva or Helsinki?

1 ACCEPTED SOLUTION

tejas10
Giga Contributor

Got the response from HI support team.



There is a size limit in place for prcessing attachments to manage memory on your instance. The only way around this would be to increase the out of the box max size of 5MB, but this can cause memory issues and could potentially cause the instance to run out of memory. Changing this limitation would NOT be supported by ServiceNow if this caused any performance repercussions. That being said, you could increase the max size limit as follows...



1. System Properties -> All Properties


2. Click "New" to create a new system property "com.glide.attachment.max_get_size" and enter value in bytes (for example 7000000 for 7MB).


3. Save



View solution in original post

1 REPLY 1

tejas10
Giga Contributor

Got the response from HI support team.



There is a size limit in place for prcessing attachments to manage memory on your instance. The only way around this would be to increase the out of the box max size of 5MB, but this can cause memory issues and could potentially cause the instance to run out of memory. Changing this limitation would NOT be supported by ServiceNow if this caused any performance repercussions. That being said, you could increase the max size limit as follows...



1. System Properties -> All Properties


2. Click "New" to create a new system property "com.glide.attachment.max_get_size" and enter value in bytes (for example 7000000 for 7MB).


3. Save