Home > Back-end >  Java according to batch download url, found that a few thousand bytes download the compressed file t
Java according to batch download url, found that a few thousand bytes download the compressed file t

Time:02-08




Implementation approach according to batch download url path implementation, according to the url path through the flow path, deposit to a temporary file, then file compression, and finally returned to the front zip.


This is spooled file size



The image below is compressed at the front desk to open the file size


Byte is 5335 like this is the case, return the documents to 0 at the front desk.
Other bytes can display properly, the most strange is the program can run normally, also didn't go wrong.

Rookie a, bosses, very worried, also could not find abroad. Passing bosses to give directions!!!!!! Very anxious!

CodePudding user response:

Is this a file itself has a problem

CodePudding user response:

reference 1/f, seven of the world, I'll take ninety-nine response:
is the file itself has a problem of one
no, I according to the url path links can be opened, smaller file bytes, front desk return is zero size, what is the need to set up, the program can run normally, the background and no error message, can explain

CodePudding user response:

First, in the local test to see if the local can normal output to a file, and then see if there are data compressed files

CodePudding user response:

reference KeepSayingNo reply: 3/f
, in the local test first to see if the local can normal output to a file, and then see if there are data compressed file
this is in the local environment test, my front desk decompression down above other have data, but only small files without the data,
  • Related