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

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
 
N

Niels Ull

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.
 
S

Smith

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
 
S

Smith

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top