Stream was too long

  

Hi, 


I am getting “stream was too long” error when I am trying to read the file using SFTP and FileSystem extension. My file size is around 3 GB, I understand that stream is limited to 2 GB. 


Is there any way to read such a big file?


Thank you in anticipation.


Regards,

Sagar

Hi,

Depends what you want with it?


J. wrote:

Hi,

Depends what you want with it?


I want to read the files from SFTP and store it on the filesystem. Also, want to read the content of the file.

Hi,


I would suggest to copy the file async, or for example with robocopy or something simliar.

And reading the file, dunno why, but check some forge-components to read a file line by line instead of full-force.

But still, 3Gb file, i am still worried why these files even exists...

personally i would look for a better solution and have the file chopped up in smaller files.