Does Uploader use Compression?

Hi. I had a question about the Blazor Uploader component.
Does it use compression during the upload process to minimize network load?
Is there advantage to zip before upload and unzip after?
Thanks,
Jason

3 Replies

BC Berly Christopher Syncfusion Team March 10, 2020 02:02 PM UTC

Hi Jason, 
  
Greetings from Syncfusion support.  
  
Query 1: 
  
Does it use compression during the upload process to minimize network load? 
  
Response: 
  
No, we have not provided any built-in compression for converting the file as zip, once it has been selected. so we can upload only the existing compressed file.  
  
Query 2: 
  
Is there advantage to zip before upload and unzip after? 
  
Response: 
  
The advantage in the uploading compressed file compared to the normal file is reduce the file size that will helps to decrease the uploading time in to the server.  
  
Note: Compression will not be helpful if the file size difference between normal and compressed file is small.  
  
To know more about Uploader component, please refer the below documentation link.  
  
  
Regards, 
Berly B.C 



BD Boot Dat February 9, 2023 06:41 PM UTC

You answered that a zip file can't be compressed but what about photos?
Can photos selected and uploaded be compressed/resized to reduce their size?


Or how can I reduce the photo size that's being uploaded on blazor wasm?



UD UdhayaKumar Duraisamy Syncfusion Team February 15, 2023 02:12 PM UTC

By default, the File Uploader component does not support image resizing or reducing file size. However, you can achieve image resizing on the server side when saving the uploaded image. To learn more about resizing an image on server side, please refer to the public blogs shared below.

  1. https://www.c-sharpcorner.com/UploadFile/ishbandhu2009/resize-an-image-in-C-Sharp/

  2. https://satvasolutions.com/resize-large-image-with-good-quality-using-c-coding/

  3. https://www.codeproject.com/Questions/1280539/How-do-I-reduce-image-size-without-losing-any-qual

  4. https://blog.aspose.com/imaging/resize-images-in-csharp/


Loader.
Up arrow icon