FileIo Connector > Troubleshooting > Handling Large Attachments
  

Handling Large Attachments

You can transfer large files by the following ways:
Note: You can upload or download files with maximum size of 75 MB using FileIO Connector.

Increasing the Field Buffer Size

In case you need to process or transfer a large file, you must increase the body field size in both source and target section of field mapping tab. Refer field Mapping
Follow the steps given below to increase the field buffer size:
    1. In Field Mapping section of the synchronization task, click Edit Types and select Body field in the Source section. Refer 11.
    2. Edit Field Data Types dialog box appears
    3. Select Base64 from the list.
    4. Mention the character Size in the field as shown in the figure.
    5. Click OK.
    6. In the Target section, click Edit Types and select Body field next to File Content As Base64 String field as shown in figure given below.
    7. The Edit Field Data Types dialog box appears.
    8. Increase the character size in precision field of File Content as Base64 String.
    9. Click OK.
This will increase the file size. An error FATAL ERROR: Failed to allocate memory. Out of virtual memory is thrown, when you try to transfer the file which exceeds the maximum limit.
You can overcome the above error by increasing the secure agent memory.

Increasing the Secure Agent Memory

To increase performance and avoid runtime environment memory issues, perform the following steps:
    1. In Administrator, select Runtime Environments.
    2. Select the Secure Agent for which you want to increase memory from the list of available Secure Agents.
    3. In the upper-right corner, click Edit.
    4. In the System Configuration Details section, select the Type as DTM for the Data Integration Service.
    5. Edit JVMOption1 as -Xms4056m and JVMOption2 as -Xmx4056m.
    The following image shows the Details page:
    The image shows the Agent Name.
    6. In the System Configuration Details section, select the Type as TomCatJRE
    7. Edit INFA_memory as -Xms256m -Xmx512m.
    The following image shows the Agent Details page:
    For the agent name, we can see the Type as Tomcat JRE.
    Note: The minimum and maximum values for the Java heap size are given as an example. Specify the size according to your requirements.
    8. Restart the Secure Agent.