Splitting document into smaller size documents

Certified Lead Developer

Hello All,

We are having a requirement to split the document uploaded by the user into smaller documents if the size of the document uploaded by the user is more than 5MB.

The file type can be any like Excel, txt, pdf etc. We need to create a solution that will pick the file and divide that in small size files and save in Appian document folder.

Thanks in advance for your response.

Regards

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    Determine the type of the file using Appian's file functions. Depending on the file type, different splitting methods may be required. For example, for a PDF file, you can use a PDF library to split the file into smaller PDFs. Use the appropriate splitting method to divide the file into smaller files. Each smaller file should be less than or equal to 5MB in size. You can use Appian's file functions to create new files and write the split data to them. This is just an idea. You can try and run this.

Reply
  • 0
    Certified Associate Developer

    Determine the type of the file using Appian's file functions. Depending on the file type, different splitting methods may be required. For example, for a PDF file, you can use a PDF library to split the file into smaller PDFs. Use the appropriate splitting method to divide the file into smaller files. Each smaller file should be less than or equal to 5MB in size. You can use Appian's file functions to create new files and write the split data to them. This is just an idea. You can try and run this.

Children
No Data