1

I need to transfer Large amount of Json file content from the server side to Angular side.

I am using Web api(c#) as the back end Angular 7 as the font end.

Json file is around 20 MB. So I have compressed the Json file using LZ compression from the server and I could able to decompress the file from the Angular website.

But the file size after the LZ compression is still around 8 MB. I need to make it to more smaller file. Can anyone recommend better compression scheme so that I can reduce the file size and transfer file from the server side to Angular side.?

Also can I zip those compressed file from the server , then transfer it to the client side and unzip those LZ compressed file from the Angular side?

Roshil K
  • 2,583
  • 28
  • 38
sachin s
  • 21
  • 2
  • 2
    This is the same off-topic post [here](https://stackoverflow.com/questions/59718440/best-compression-scheme-between-c-sharp-and-angular-or-zip-functionality-in-angu). Misspelled words, and everything. – R. Richards Jan 13 '20 at 14:28
  • 2
    Why this is off topic? We need some technology help from stack overflaw members – Roshil K Jan 13 '20 at 14:45
  • Json format is not suitable for large data transfer. Can you make your request result filtered on the service side? – oleksa Jan 13 '20 at 14:49
  • Hi Oleska, Thanks for the response. Could you please recommend any other format for the large file transfer? – Roshil K Jan 13 '20 at 14:52
  • there is no "silver bullet" technology unfortunately to put 20MB in one second. You can use [pagination](https://stackoverflow.com/questions/446196/how-do-i-do-pagination-in-asp-net-mvc) to transfer only part of the data.But first of all you have to check how those data are processed on the client. Do you really need raw data to be send over network? Can you add some processing code on the server side to filter or to pre-process data before sending over the network? – oleksa Jan 14 '20 at 09:12

0 Answers0