473,395 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

retrieving a zip file from a url using asp


Hi, I have a zipfile that is created dynamically for me on a webserver.
I have the url of the zip sent as a post value to an asp script on my
website.

In my asp script I need to be able to retrieve the zip file so that i
may extract content from it using an asp zip component.

Any idea how to retrieve the file?

Cheers Kelby

--
kelby
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jul 22 '05 #1
2 1533
well, if the zip file isn;t ont the same webserver (which I assume is the
case the way you said this)
you can use the xml parser component that is usually installed on new
servers by default.
you can then go grab the zip file, save it locally to the server (I have
done this with images using the binary stream so I assume it would work with
any type of file), but maybe not
then do your thing with your asp zipping component and unzip

if the zip file is on the same server there is no need to use the xml parser
component to fetch it


"kelby" <ke**********@mail.codecomments.com> wrote in message
news:ke**********@mail.codecomments.com...

Hi, I have a zipfile that is created dynamically for me on a webserver.
I have the url of the zip sent as a post value to an asp script on my
website.

In my asp script I need to be able to retrieve the zip file so that i
may extract content from it using an asp zip component.

Any idea how to retrieve the file?

Cheers Kelby

--
kelby
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jul 22 '05 #2
here is code I use to grab a image from a url and save it..

I am only showing you this as it may help you... there is a lot of stuff in
here specific to what I was doing that you can get rid of (I use this in
code I wrote to save pictures locally from nextel cell phone emails which
only contaitn the url to images)

'Get the Image
Set xmlhttp = CreateObject("Msxml2.SERVERXMLHTTP")
xmlhttp.Open "GET", PicURL, false
xmlhttp.Send(Now)

'Create a Stream
Set adodbStream = CreateObject("ADODB.Stream")

'Open the stream
adodbStream.Open
adodbStream.Type = 1 'adTypeBinary
adodbStream.Write xmlhttp.responseBody

filename = RndStr(16,"123456789abcdefghijkmnpqrstuvwxyz") & ".jpg"

adodbStream.SaveToFile (Cell_Picture_Directory & msg.From & "\" & filename),
2 'adSaveCreateOverWrite
adodbStream.Close

Set adodbStream = Nothing
Set xmlhttp = Nothing


"Kyle Peterson" <kp*****@hotmail.com> wrote in message
news:uS**************@tk2msftngp13.phx.gbl...
well, if the zip file isn;t ont the same webserver (which I assume is the
case the way you said this)
you can use the xml parser component that is usually installed on new
servers by default.
you can then go grab the zip file, save it locally to the server (I have
done this with images using the binary stream so I assume it would work
with any type of file), but maybe not
then do your thing with your asp zipping component and unzip

if the zip file is on the same server there is no need to use the xml
parser component to fetch it


"kelby" <ke**********@mail.codecomments.com> wrote in message
news:ke**********@mail.codecomments.com...

Hi, I have a zipfile that is created dynamically for me on a webserver.
I have the url of the zip sent as a post value to an asp script on my
website.

In my asp script I need to be able to retrieve the zip file so that i
may extract content from it using an asp zip component.

Any idea how to retrieve the file?

Cheers Kelby

--
kelby
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------


Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: hsifelbmur | last post by:
We are writing an app that automates printing of documents of different types. These documents are printed to PostScript files, not to a printer. The app uses shellExecute with the "printto" verb...
0
by: kid4rilla | last post by:
I can successfully write the binary data to an image data type, and successfully retrieve it, but when I attempt to play the file in media player after retrieving it, I get the file type isn't...
0
by: Andy | last post by:
Hi All. I'm working for a company that has set out a guideline for retrieving data from a database. Nobody can explain to me the reason for the following. When retrieving a set of records...
3
by: EYIII | last post by:
Is it possible to retrieve the "created by" identity and "modified by" identity for a file (e.g. word doc, .pdf, report, etc) using .NET?
5
by: Randy Smith | last post by:
Hi ALL, I wonder if anyone has been using n-tier to bind to a GridView control by using the ObjectDataSource. This is our first OOP web application, and we have no tables. Right now we are...
5
by: Sanjay Pais | last post by:
I have a table with over 1.3 million rows. I am retrieving only 20 at a time using the with - over clauses In query analyser, the data is retrieved in under a second. When retrieving using the...
1
by: ahammad | last post by:
This application opens a Word document for editing. I need to keep the file path of the Word document even after it has been closed. I tried using Word event handlers but I couldn't figure it out, so...
4
by: shirleylouis | last post by:
Hi Ppl, Could anyone help me out with retrieving URL from Clipboard using C#??
2
by: shivapadma | last post by:
i have inserted the image into database using the following code String driverName = "com.mysql.jdbc.Driver"; String url = "jdbc:mysql://localhost:3306/"; String dbName =...
0
by: Phijo | last post by:
Hello, I'm a Java developer but brand new to ASP (i have done some of the tutorials) so I have some ASP programming background however I cannot find the cause or the fix to this problem. I am...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.