Question

Download file from Web

  • 17 August 2023
  • 3 replies
  • 230 views

Badge +2

Good morning,

 

when i use the “download file from url in web” (url pointing to sharepoint) the bot saves a pdf, but this file is corrupted (the original file is 1250kb while the file saved is 42kb. Why?


3 replies

Userlevel 6
Badge +15

Hi @celestinoImpre ,

 

The issue you're encountering, where the downloaded PDF file is much smaller and corrupted compared to the original file, could be due to several reasons. Here are some potential explanations:

  1. Incomplete Download: The download might be getting interrupted or terminated prematurely, resulting in a partial or corrupted file. This could be due to network issues, server problems, or even limitations within the downloading process itself.

  2. Content-Type Mismatch: The server might be sending the wrong Content-Type header in the HTTP response, which could confuse the downloading process. This can lead to incorrect interpretation of the file's format and cause corruption.

  3. Authentication or Permissions Issues: If the SharePoint site requires authentication or specific permissions to access the file, incorrect or insufficient credentials might lead to partial downloads or corrupted files.

  4. Encoding Issues: The content of the PDF file might not be properly encoded during the download process, leading to data loss and corruption

To troubleshoot and resolve this issue, consider the following steps:

  1. Check the URL: Ensure that the URL you're using is correct and points directly to the PDF file you want to download.

  2. Test Different URLs: Try downloading the same file using a different tool or method to determine if the issue is specific to the current application you're using.

  3. Authentication: If the SharePoint site requires authentication, make sure you're providing the correct credentials.

 

Badge +2

Ok, thanks for the advice

Badge +4

Hi,

Please check the solution provided in the below link.

https://www.nucleustechnologies.com/blog/fixed-pdf-error-the-file-is-damaged-and-could-not-be-repaired/

I have applied solution (Change Adobe’s Security Settings) for similar issue, and its working for me.

Reply