Ask a Question related to ASP.NET General, Design and Development.
-
Michael Rogers #1
Save a zip file locally?
I dunno how save a file locally! How can I copy a file
([url]http://foo.com/foo.zip[/url]) to my local server
([url]http://mydomain.com/temp/foo.zip)?[/url]
I saw a sample in MS Quick Start but I can't manipulate it to work with for
example zip files.
WebRequest req = WebRequest.Create(txbFile.Text);
try {
WebResponse result = req.GetResponse();
Stream ReceiveStream = result.GetResponseStream();
if(true) {
StreamWriter writer = new StreamWriter(ResolvePath("temp.zip"));
Byte[] read = new Byte[512];
int bytes = ReceiveStream.Read(read, 0, 512);
// int i = ReceiveStream.ReadByte();
while (bytes > 0) {
writer.Write(bytes);
bytes = ReceiveStream.Read(read, 0, 512);
}
// while(i != -1){
// writer.Write(i);
// i = ReceiveStream.ReadByte();
// }
writer.Close();
lblResult.ForeColor = Color.Black;
lblResult.Text = "Operation Succeed!";
btnShow.Text = "Download File!";
btnShow.Enabled = true;
}
} catch(Exception _ex) {
lblResult.Text = _ex.ToString();
}
TIA
- Michael Rogers
Michael Rogers Guest
-
Can Flash save data from a text file locally
Is it possible to save file in a txt format using Flash. I want to create a game that ask for a name and then later store it in a TXT file... -
Can I save files locally and then Publish?
I am trying to save a local version of a page on my site so I can FTP it to another site instead of the site setup in Contribute. Is there a way to... -
Unable to open SWF file locally
When SWF files are saved locally, the will not run. This issue started occurring recently and may be related to an IE security update three weeks... -
Unable to Save/Save As/close Word XP file with Acrobat 5.0 installed
One of my user is having this problem on her Windows XP PC: Dell GX260 with Windows XP Professional running 512MB RAM, Office XP, Acrobat 5.0 ... -
Open file, make changes, save file, close, re-open, file contents not changed
I've now run into this several times and it's completely destroyed all of my confidence in Ilustrator CS on Mac. I'm hoping someone can confirm that...



Reply With Quote

