Issue with third party downloading attachments 5MB+

joes
Tera Contributor

Hello,

 I am task with sending attachments that are apart of the outage task (Change request or the Incident that cause the outage) we have tried to change the properties if there is something else that can be done let me know. When the third party tries to open the attachments they see the file is empty but the byte size, file type and attachment fields are there filled. We tried to increase the OOB feature to 10 MB instead of the 5 and still nothing, They will get smaller files but just not the bigger attachments. We tried to use the getcontentstream but on their end they get com.glide.communications.GlideScriptableInputStream@2e4e55c.

joes_0-1718307877651.png

        if (sysAttach.next()) {
            var sa = new GlideSysAttachment();
            var binData = sa.getBytes(sysAttach); // limited to 1 million characters (roughly 5MB)
            //var binData = sa.getContentStream(sysAttach); // limited to 16 million characters (roughly 35MB)
            var StringUtil = new GlideStringUtil();
            encData = StringUtil.base64Encode(binData);
        }

 

(Yes there is more code to the business rule but can't share that is the fields and names but this is the main part which we would need to fix i am assuming or the properties

0 REPLIES 0