Table of Contents

AIRS-2113 ENABLER: Analyze - Handling large single processes (200 MB)

Common

Way

We can send information about links to upload/download files at least in two different ways:

Check full chain

Credentials

To download or upload attachments to / from a shared ressource we need credentials. Question:

FAT

Antivirus

Conclusion

Upload

Import

In com.seeburger.airsupply.base.exchange.MimeMessageImportHandler:

public void initializeHandlerObjects(SerializableInputStream in, MessageProperties props) {
    super.initializeHandlerObjects(in, props);
    this.mimeMessageImportProcessor = FATProcessorFactory.createMimeMessageImportProcessor(in, props, new XMLImportProviderImpl(),
        AttachmentProcessId.getIdBySmartiMType(props.getProperty(MessageProperties.MESSAGE_TYPE)));
}

Here we can use different mimeMessageImportProcessor depending on MESSAGE_TYPE.

Misc

Inserting BLOB for tests

To insert BLOB create a new record in FAT META table at first:

INSERT INTO TFATATTACHMENTMETA 
(CMIMECONTENTID,CPROCESSID,CFILENAME,CORIGINATOR,CFILESIZE,CFILETYPE,CENCRYPTED,CDELETEFLAG,CCREATIONTIMESTAMP,CTRANSMISSIONTIMESTAMP,CSCANSTATUS,CSCANMODE,CLASTSCANTIMESTAMP,CWSPROCESSORNODE,CVIRUSIDS,CRETRYBLOCK,CATTACHMENTID,CREADSTATUS,CREADTIMESTAMP,CFLEXFIELD1) 
VALUES 
('VVK_TEST_20190604',6,'attachment_1GB.txt','SUPPLIER',1048576000,'txt',0,0,1555482046306,-9223372036854775808,'STATUS_WATINGFORCHECK','ASYNC',0,NULL,NULL,0,3586,'NEW',-9223372036854775808,'COD');

After that run the small program “Main” from my test project “insertFat” (see D:\development\workspaces\insertFat).

Conclusion