473,406 Members | 2,549 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,406 software developers and data experts.

Easiest way to save image from an URL in ASP.NET

I would like to know the most efficient way to copy an image from an
Internet URL to the local hard disk by means of using an ASP.NET page.

So, I would like to click the button on the ASP.NET page and thus to save a
copy of a picure at let's say http://www.blabla.com/pic.jpg to predefined
location on my hard disk.

Thanks in advance,
Hrvoje
Feb 14 '06 #1
4 3717
>I would like to know the most efficient way to copy an image from an
Internet URL to the local hard disk by means of using an ASP.NET page.
Open the page in a browser. The image will be in your Temporary Internet
Files folder.

Of course, if you want to find it more easily, right-click the image, and
choose "Save Image As..." from the context menu.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Hrvoje Vrbanc" <hr*****@recro.hr> wrote in message
news:uU**************@TK2MSFTNGP11.phx.gbl...I would like to know the most efficient way to copy an image from an
Internet URL to the local hard disk by means of using an ASP.NET page.

So, I would like to click the button on the ASP.NET page and thus to save
a copy of a picure at let's say http://www.blabla.com/pic.jpg to
predefined location on my hard disk.

Thanks in advance,
Hrvoje

Feb 14 '06 #2
my.Computer.Network.DownloadFile (...)
So when the user clicks an image you should send the url directly.
Let the server download the image then.

"Hrvoje Vrbanc" <hr*****@recro.hr> schreef in bericht
news:uU**************@TK2MSFTNGP11.phx.gbl...
I would like to know the most efficient way to copy an image from an
Internet URL to the local hard disk by means of using an ASP.NET page.

So, I would like to click the button on the ASP.NET page and thus to save
a copy of a picure at let's say http://www.blabla.com/pic.jpg to
predefined location on my hard disk.

Thanks in advance,
Hrvoje

Feb 14 '06 #3
Hello Kevin!

I was in fact referring to an automated process for saving a lot of images
(named logically on remote server so that the names could be created
programatically) under names also created programatically.....

Hrvoje

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eA**************@TK2MSFTNGP14.phx.gbl...
I would like to know the most efficient way to copy an image from an
Internet URL to the local hard disk by means of using an ASP.NET page.


Open the page in a browser. The image will be in your Temporary Internet
Files folder.

Of course, if you want to find it more easily, right-click the image, and
choose "Save Image As..." from the context menu.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Hrvoje Vrbanc" <hr*****@recro.hr> wrote in message
news:uU**************@TK2MSFTNGP11.phx.gbl...
I would like to know the most efficient way to copy an image from an
Internet URL to the local hard disk by means of using an ASP.NET page.

So, I would like to click the button on the ASP.NET page and thus to save
a copy of a picure at let's say http://www.blabla.com/pic.jpg to
predefined location on my hard disk.

Thanks in advance,
Hrvoje


Feb 15 '06 #4
That solved the problem, thanks!
Hrvoje

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
my.Computer.Network.DownloadFile (...)
So when the user clicks an image you should send the url directly.
Let the server download the image then.

"Hrvoje Vrbanc" <hr*****@recro.hr> schreef in bericht
news:uU**************@TK2MSFTNGP11.phx.gbl...
I would like to know the most efficient way to copy an image from an
Internet URL to the local hard disk by means of using an ASP.NET page.

So, I would like to click the button on the ASP.NET page and thus to save
a copy of a picure at let's say http://www.blabla.com/pic.jpg to
predefined location on my hard disk.

Thanks in advance,
Hrvoje


Feb 15 '06 #5

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

Similar topics

7
by: Rolf Hemmerling | last post by:
Hello ! Beginner's question: What ist the easiest way to store and save objects in a file generated by a C++ program, by using the "standard C++ library" and/or "Standard Template Library (...
0
by: F. Hall | last post by:
If I read a bitmap image from one file and save it to another the save operation is slow unless I draw on the image. In other words, Image inputImage = Image.FromFile( @"c:\temp\source.bmp" );...
5
by: George | last post by:
This program need to draw the some triangles into a 512 × 512 buffer (in memory). Or save it to a file. #include "project3.h" Image::Image(int xres, int yres): xres(xres), yres(yres) {...
0
by: prakash | last post by:
Dear Friends I am new guy to Visual C++.NET I've program to save website as a image vc++.net . It have a function "SaveSnapshot" to save the webpage as an image On that function ifor saving...
1
by: Hardy Wang | last post by:
Hi, I found a piece of code to add drop shadow to a photo like below, after I save the image, it is actually a BMP file even though I specify a JPG file extension (see...
2
by: Ada | last post by:
First of all, I thought this might be a directory security issue but it's not. I was able to upload the file to the directory via HTTP. Here's the situation. I have a JPG file on my server....
1
by: liuliuliu | last post by:
hi -- sorry if this is trivial -- but how do you make a screenshot of a pygame display? i have a surface which is basically the entire visible screen -- how do you write this surface as an image...
1
by: Stedak | last post by:
I have the following class I use to save Tiff's. The problem I have with it is that the final size of the images are very large. If we scan directly to a file the final tiff may be 600-900 kb.s but...
0
by: crazyyellowguy | last post by:
hi, This is my first post in this forum and I just wanted to thank you for even taking a look at my post. The class that I am writing the C code for is my first computer class and my knowledge is...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.