473,383 Members | 1,735 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,383 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 1531
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.