Hi (apologies for the xpost, but im not sure where this fits in),
I have recently had a site demostrated to me (a newsgroup binaries archive
site) that allows a user to select multiple files, then download the
selected files combined as one zip. At first i thought this was nothing
special, until it was pointed out that the download commenced immediately,
and some of the many selected files were almost a GB in size. The only
conclusions I can draw from this is that either a) they have a super-fast
zip service working in the background (which i think is unlikely), or b) you
can somehow 'stream' a zip file as it is created - which i think is the more
likely option. I've noticed that none of the zips are compressed and was
wondering if its possible to somehow add a zip header to the response,
followed by binarywrites of the selected files?
If anybody can shed any light (point me in the direction of
articles/components/examples) on how to do this using c#/asp.net I would
really appreciate it.
tia.
Mark Kelly 6 1262
Try looking at the #ziplib from #develop. It has a "xxxOutputStrea m"s (like
ZipOutputStream ) that will write to a base stream instead of a file. This
way, you can start sending the stream immediately and still add files (or
even parts of files) as the client recieves it. http://www.icsharpcode.net/OpenSourc...b/Default.aspx
"Mark Kelly" <mark.no$pam.ke lly@f$nm.remove meandchange$tos .co.uk> wrote in
message news:uH******** ******@TK2MSFTN GP12.phx.gbl... Hi (apologies for the xpost, but im not sure where this fits in),
I have recently had a site demostrated to me (a newsgroup binaries archive site) that allows a user to select multiple files, then download the selected files combined as one zip. At first i thought this was nothing special, until it was pointed out that the download commenced immediately, and some of the many selected files were almost a GB in size. The only conclusions I can draw from this is that either a) they have a super-fast zip service working in the background (which i think is unlikely), or b)
you can somehow 'stream' a zip file as it is created - which i think is the
more likely option. I've noticed that none of the zips are compressed and was wondering if its possible to somehow add a zip header to the response, followed by binarywrites of the selected files?
If anybody can shed any light (point me in the direction of articles/components/examples) on how to do this using c#/asp.net I would really appreciate it.
tia.
Mark Kelly
Yes it is possible to create zip files on the fly, the actual implementation
will depend on which zip library you use, since .Net framework doesn't come
with one.
Jerry
"Mark Kelly" <mark.no$pam.ke lly@f$nm.remove meandchange$tos .co.uk> wrote in
message news:uH******** ******@TK2MSFTN GP12.phx.gbl... Hi (apologies for the xpost, but im not sure where this fits in),
I have recently had a site demostrated to me (a newsgroup binaries archive site) that allows a user to select multiple files, then download the selected files combined as one zip. At first i thought this was nothing special, until it was pointed out that the download commenced immediately, and some of the many selected files were almost a GB in size. The only conclusions I can draw from this is that either a) they have a super-fast zip service working in the background (which i think is unlikely), or b)
you can somehow 'stream' a zip file as it is created - which i think is the
more likely option. I've noticed that none of the zips are compressed and was wondering if its possible to somehow add a zip header to the response, followed by binarywrites of the selected files?
If anybody can shed any light (point me in the direction of articles/components/examples) on how to do this using c#/asp.net I would really appreciate it.
tia.
Mark Kelly
Hi Jerry
I understand that its possible to create zip files on the fly, I'm wondering
how you start sending the zip to the client, before you've finished creating
it!
"Jerry Pisk" <je******@hotma il.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. Yes it is possible to create zip files on the fly, the actual
implementation will depend on which zip library you use, since .Net framework doesn't
come with one.
Jerry
"Mark Kelly" <mark.no$pam.ke lly@f$nm.remove meandchange$tos .co.uk> wrote in message news:uH******** ******@TK2MSFTN GP12.phx.gbl... Hi (apologies for the xpost, but im not sure where this fits in),
I have recently had a site demostrated to me (a newsgroup binaries
archive site) that allows a user to select multiple files, then download the selected files combined as one zip. At first i thought this was nothing special, until it was pointed out that the download commenced
immediately, and some of the many selected files were almost a GB in size. The only conclusions I can draw from this is that either a) they have a
super-fast zip service working in the background (which i think is unlikely), or b) you can somehow 'stream' a zip file as it is created - which i think is the more likely option. I've noticed that none of the zips are compressed and was wondering if its possible to somehow add a zip header to the response, followed by binarywrites of the selected files?
If anybody can shed any light (point me in the direction of articles/components/examples) on how to do this using c#/asp.net I would really appreciate it.
tia.
Mark Kelly
Mark Kelly wrote: Hi Jerry
I understand that its possible to create zip files on the fly, I'm wondering how you start sending the zip to the client, before you've finished creating it!
If you use the SharpZipLib library, you create a ZipOutputStream which
you wrap around an exisiting stream and then write to it using standard
StreamWriter classes.
As you write data to the ZipOutputStream , it's compressed on the fly and
sent to its eventual destination. In this way, you don't even have to
create a local file before sending it to the remote client! "Jerry Pisk" <je******@hotma il.com> wrote in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Yes it is possible to create zip files on the fly, the actual
implementation
will depend on which zip library you use, since .Net framework doesn't
come
with one.
Jerry
"Mark Kelly" <mark.no$pam.ke lly@f$nm.remove meandchange$tos .co.uk> wrote in message news:uH******** ******@TK2MSFTN GP12.phx.gbl...
Hi (apologies for the xpost, but im not sure where this fits in),
I have recently had a site demostrated to me (a newsgroup binaries archive site) that allows a user to select multiple files, then download the selected files combined as one zip. At first i thought this was nothing special, until it was pointed out that the download commenced immediately, and some of the many selected files were almost a GB in size. The only conclusion s I can draw from this is that either a) they have a super-fast zip service working in the background (which i think is unlikely), or b)
you
can somehow 'stream' a zip file as it is created - which i think is the
more
likely option. I've noticed that none of the zips are compressed and was wondering if its possible to somehow add a zip header to the response, followed by binarywrites of the selected files?
If anybody can shed any light (point me in the direction of articles/components/examples) on how to do this using c#/asp.net I would really appreciate it.
tia.
Mark Kelly
--
Ed Courtenay
[MCP, MCSD] http://www.edcourtenay.co.uk
Cheers Ed - this is exactly what i was looking for.
"Ed Courtenay" <re************ *************** **@edcourtenay. co.uk> wrote in
message news:uD******** ********@TK2MSF TNGP12.phx.gbl. .. Mark Kelly wrote:
Hi Jerry
I understand that its possible to create zip files on the fly, I'm
wondering how you start sending the zip to the client, before you've finished
creating it!
If you use the SharpZipLib library, you create a ZipOutputStream which you wrap around an exisiting stream and then write to it using standard StreamWriter classes.
As you write data to the ZipOutputStream , it's compressed on the fly and sent to its eventual destination. In this way, you don't even have to create a local file before sending it to the remote client!
"Jerry Pisk" <je******@hotma il.com> wrote in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Yes it is possible to create zip files on the fly, the actual
implementation
will depend on which zip library you use, since .Net framework doesn't
come
with one.
Jerry
"Mark Kelly" <mark.no$pam.ke lly@f$nm.remove meandchange$tos .co.uk> wrote
inmessage news:uH******** ******@TK2MSFTN GP12.phx.gbl...
Hi (apologies for the xpost, but im not sure where this fits in),
I have recently had a site demostrated to me (a newsgroup binaries
archive
site) that allows a user to select multiple files, then download the selected files combined as one zip. At first i thought this was nothing special, until it was pointed out that the download commenced
immediately,
and some of the many selected files were almost a GB in size. The only conclusion s I can draw from this is that either a) they have a
super-fast
zip service working in the background (which i think is unlikely), or
b) you
can somehow 'stream' a zip file as it is created - which i think is the
more
likely option. I've noticed that none of the zips are compressed and
waswondering if its possible to somehow add a zip header to the response, followed by binarywrites of the selected files?
If anybody can shed any light (point me in the direction of articles/components/examples) on how to do this using c#/asp.net I
wouldreally appreciate it.
tia.
Mark Kelly
--
Ed Courtenay [MCP, MCSD] http://www.edcourtenay.co.uk
Cheers Philip - This is exactly what i was looking for.
"Philip Rieck" <st***@mckraken .com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. Try looking at the #ziplib from #develop. It has a "xxxOutputStrea m"s
(like ZipOutputStream ) that will write to a base stream instead of a file. This way, you can start sending the stream immediately and still add files (or even parts of files) as the client recieves it.
http://www.icsharpcode.net/OpenSourc...b/Default.aspx
"Mark Kelly" <mark.no$pam.ke lly@f$nm.remove meandchange$tos .co.uk> wrote in message news:uH******** ******@TK2MSFTN GP12.phx.gbl... Hi (apologies for the xpost, but im not sure where this fits in),
I have recently had a site demostrated to me (a newsgroup binaries
archive site) that allows a user to select multiple files, then download the selected files combined as one zip. At first i thought this was nothing special, until it was pointed out that the download commenced
immediately, and some of the many selected files were almost a GB in size. The only conclusions I can draw from this is that either a) they have a
super-fast zip service working in the background (which i think is unlikely), or b) you can somehow 'stream' a zip file as it is created - which i think is the more likely option. I've noticed that none of the zips are compressed and was wondering if its possible to somehow add a zip header to the response, followed by binarywrites of the selected files?
If anybody can shed any light (point me in the direction of articles/components/examples) on how to do this using c#/asp.net I would really appreciate it.
tia.
Mark Kelly
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Craig D |
last post by:
I got really tired of unpacking a distutils package, installing then
cleaning up. So I wrote distinstall.py - it reads a zip file, unpacks
it, installs the bits and cleans up. I've only used it on windows and
Linux and for pure Python packages.
Windows: distinstall.py Photronics.zip
Linux: python distinstall.py Photronics.zip
Hopefully somebody else will find it useful.
#======================== distinstall.py =====================
|
by: Mark Kelly |
last post by:
Hi (apologies for the xpost, but im not sure where this fits in),
I have recently had a site demostrated to me (a newsgroup binaries archive
site) that allows a user to select multiple files, then download the
selected files combined as one zip. At first i thought this was nothing
special, until it was pointed out that the download commenced immediately,
and some of the many selected files were almost a GB in size. The only
conclusions...
|
by: Yogi_Bear_79 |
last post by:
pardon my ignorance as I am a self-taught hobbyist programmer.
I am curious after reading up on SharpZipLib. Can I embed a zipped txt file
in my program? Then either read from within the zip file or unzip and read
it? I currently have an embedded text file that contains a list that is
read into an array. I'm always looking to save space. And I could reduce my
file size 75% if it was zipped! I have looked at the SharpZipLib web site,...
|
by: A.M-SG |
last post by:
Hi,
I have a ASP.NET aspx file that needs to pass large images from a network
storage to client browser. The requirement is that users cannot have access
to the network share. The aspx file must be the only method that users
receive image files.
|
by: adiela |
last post by:
hello everyone..i would like to ask something regarding my project..
i've been planning to develop a website using asp code for streaming
multimedia features...unfortunatly...i have zero knowledge bout all
this things that needed...can someone give me a rough guideline bout
what should i do step-by-step... such as..what database should i
use...how can i store or create a database that can hold my multimedia
files?
i really do need ur...
| |
by: Amelyan |
last post by:
I have a bunch of files I need to put into Compressed (zipped) Folder,
MyFiles.zip file, similarly to what Windows XP does when you send files to
compressed zipped folder, so users can download MyFiles.zip from my ASP.NET
2.0 site. What is the simplest way to compress these files into a .zip?
I found System.IO.Compression, but I am not sure how to use it to do what I
need to do. Does anyone have an example of how to send a bunch of...
|
by: Cerebral Believer |
last post by:
Hi All,
I plan to use streaming audio on my site. I had uploaded some .mp3's as
part of a trial, and these streamed very badly so I tried .ram (RealAudio)
files instead. The RealAudio files are a lot smaller in size, but they do
not stream, a user has to download the file before listening to it.
Which format would you recommend for good to high quality audio streaming?
Should RealAudio files stream? If so how can I get them to...
|
by: poorna |
last post by:
hi all
i want to upload the video files to the server..
then i encode all the video files into flv files ...
and then i am go to streaming ...
in the mean while i create the thumbnail image from video..
doubts:
how to upload the video files to web server?
|
by: Amjad |
last post by:
Hi i am writing a application where i want to browse video file and copy data
into stream and send that stream over network...I have develop P2P windows
application where i successfully transfer text message to each other but now
i want to send video file and play that file on other end...I know the code
how to send the stream over the network but basic problem is how open that
file as a stream.
Thanks
|
by: Brad |
last post by:
I have an aspx page that is sending pdf files to client browsers: it uses a filestream to read the pdf file and
response.binarywrite to send content to the browser. This has worked great for years in IE, Firefox and Opera on
windows, and it works on a Mac with Firefox and Opera. But this fails in Safari with the generic message "A network
error occurred while accessing this document".
Here is a link to try out ...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |