How to get the downloaded part when ajax requests a file stream, but if there is an error in the request, you can continue to download it when you request it again to achieve breakpoint continuation.

for example, when I use xhr to request binary stream data, I know that I can use xhr.onprogress () to monitor the download progress, but the progress is not finished. If the network is interrupted or when I execute abort (), how can I get and save the downloaded part, but when I request again, I can start downloading from the interrupted location and finally get the complete data?

Jun.20,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e48b38-44ccd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e48b38-44ccd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?