Need to stream and zip a .CSV file to the clients browser!

  • Thread starter Thread starter Smith
  • Start date Start date
S

Smith

Hello,

I need to stream data from a "DataTable" to the client's machine. The data
first need to be converted to .CSV , and ziped before streaming it to the
client.

Does anyone has any experience with this? Any code snippet will be very
welcome.

Many thanks in advance

Cheers
 
Hello,
I need to stream data from a "DataTable" to the client's machine. The
data first need to be converted to .CSV , and ziped before streaming
it to the client.

Rendering to CSV is pretty staright-forward.
How important is it to zip it? Must the user download datafile.zip containing
data.csv ?

If it's "just" for performance of transferring a large amount of data, it
might be a
lot easier to apply http compression which all modern browsers support.

Just set the metabase attribute DoDynamicCompression for your GenerateCSV.aspx
page -
more details on msdn.
 
Rendering to CSV is pretty staright-forward.
How important is it to zip it? Must the user download datafile.zip
containing
data.csv ?
Yes


If it's "just" for performance of transferring a large amount of data, it
might be a
lot easier to apply http compression which all modern browsers support.

This sounds very interesting. Yes the problem here is performance. The file
could be more then gigabyte. Is HTTP compression losseless?

Do I get the same order of compression as with zip? How is the file
uncompressed on the client side?



Just set the metabase attribute DoDynamicCompression for your
GenerateCSV.aspx
more details on msdn.

Many thanks

S
 
Rendering to CSV is pretty staright-forward.
How important is it to zip it? Must the user download datafile.zip
containing
data.csv ?
Yes


If it's "just" for performance of transferring a large amount of data, it
might be a
lot easier to apply http compression which all modern browsers support.

This sounds very interesting. Yes the problem here is performance. The file
could be more then gigabyte. Is HTTP compression losseless?

Do I get the same order of compression as with zip? How is the file
uncompressed on the client side?



Just set the metabase attribute DoDynamicCompression for your
GenerateCSV.aspx
more details on msdn.

Many thanks

S
 
Back
Top