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

Create a thumbnail from a remote image

I've seen a few examples of creating an thumbnail from a file directly from
the server but....

does anyone know how i can grab a picture from another server (eg a seperate
image server http://myimages.com/images/001.jpg) and on the fly create a
thumbnail of that image?

a little like google images.

Thanks
Mike
Nov 16 '05 #1
3 2351
Mike,

After reading your post I gave it a go and it was not hard at all.
Hopefully
this is what you are looking for.

WebRequest wr = WebRequest.Create(@"www.yoururl.com/image.jpg");
Bitmap remoteImage =
(Bitmap)Bitmap.FromStream(wr.GetResponse().GetResp onseStream());

Now you have a normal bitmap image that you can modify and save as desired.

HTH,

//Andreas

"Mike" <scul[nospam]li****@hotmail.com> skrev i meddelandet
news:pb******************@news-binary.blueyonder.co.uk...
I've seen a few examples of creating an thumbnail from a file directly from the server but....

does anyone know how i can grab a picture from another server (eg a seperate image server http://myimages.com/images/001.jpg) and on the fly create a
thumbnail of that image?

a little like google images.

Thanks
Mike

Nov 16 '05 #2
Absolutly Fantastic !!!

Thanks a million for you help, Also becuase of this i'm have a good look at
the great WebRequest Class.

Thanks again :)

Mike
"Andreas Håkansson" <andy.h (at) telia.com> wrote in message
news:ev**************@TK2MSFTNGP10.phx.gbl...
Mike,

After reading your post I gave it a go and it was not hard at all.
Hopefully
this is what you are looking for.

WebRequest wr = WebRequest.Create(@"www.yoururl.com/image.jpg");
Bitmap remoteImage =
(Bitmap)Bitmap.FromStream(wr.GetResponse().GetResp onseStream());

Now you have a normal bitmap image that you can modify and save as desired.
HTH,

//Andreas

"Mike" <scul[nospam]li****@hotmail.com> skrev i meddelandet
news:pb******************@news-binary.blueyonder.co.uk...
I've seen a few examples of creating an thumbnail from a file directly

from
the server but....

does anyone know how i can grab a picture from another server (eg a

seperate
image server http://myimages.com/images/001.jpg) and on the fly create a
thumbnail of that image?

a little like google images.

Thanks
Mike


Nov 16 '05 #3
Mike,

No worries =) Yeah the WebRequest class can be a lifesave at
times. It's a blessing not having to warm up a Socket class when you
need stuff like this =)

//Andreas

"Mike" <scul[nospam]li****@hotmail.com> skrev i meddelandet
news:UT******************@news-binary.blueyonder.co.uk...
Absolutly Fantastic !!!

Thanks a million for you help, Also becuase of this i'm have a good look at the great WebRequest Class.

Thanks again :)

Mike
"Andreas Håkansson" <andy.h (at) telia.com> wrote in message
news:ev**************@TK2MSFTNGP10.phx.gbl...
Mike,

After reading your post I gave it a go and it was not hard at all.
Hopefully
this is what you are looking for.

WebRequest wr = WebRequest.Create(@"www.yoururl.com/image.jpg");
Bitmap remoteImage =
(Bitmap)Bitmap.FromStream(wr.GetResponse().GetResp onseStream());

Now you have a normal bitmap image that you can modify and save as

desired.

HTH,

//Andreas

"Mike" <scul[nospam]li****@hotmail.com> skrev i meddelandet
news:pb******************@news-binary.blueyonder.co.uk...
I've seen a few examples of creating an thumbnail from a file directly

from
the server but....

does anyone know how i can grab a picture from another server (eg a

seperate
image server http://myimages.com/images/001.jpg) and on the fly create a thumbnail of that image?

a little like google images.

Thanks
Mike



Nov 16 '05 #4

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

Similar topics

1
by: Phil Powell | last post by:
PHP 4.3.2 with --enable-exif I have the following class: <?php class ThumbGenerator extends MethodGeneratorForActionPerformer { function ThumbGenerator() { // CONSTRUCTOR
1
by: Phil Powell | last post by:
$mogResponse = exec("mogrify -size ${width}x$height " . $this->locationPath . '/' . $this->fileName . ' -resize ' . $width . "x$height > +profile " . $this->thumbLocationPath . '/' ....
3
by: Mike | last post by:
I've seen a few examples of creating an thumbnail from a file directly from the server but.... does anyone know how i can grab a picture from another server (eg a seperate image server...
0
by: Balu Ramachandran | last post by:
How can I create the Thumbnail view from the form? In the following approach I tried but Iams facing some limitations to get the thumbnail image of the form alone. Plaese any one can help in...
2
by: Mark R. Dawson | last post by:
Hi all, I have a directory full of images (most over 2MB in size) I was to show each image as a thumbnail on a form, however in order to create a thumbnail I have to open the complete image then...
6
by: Rich | last post by:
Hello, I want to simulate the dynamic thumbnail display of Windows Explorer (winxp) on a form or pannel container. If I place a picture box on my container form/pannel and dimension it to the...
8
by: barb | last post by:
So that the world at large benefits from our efforts, here is one fully documented way to use Windows Irfanview freeware to create thumbnail web galleries (http://www.irfanview.com). STEP 1:...
0
by: jonyoung | last post by:
I think I need to use WIA Windows Image Acquisition to load an image file and create a thumbnail of it and write it out again. Can anyone think of a better way to do it in ASP? I need to upload...
7
by: oscartheduck | last post by:
Hi folks, I'm trying to alter a program I posted about a few days ago. It creates thumbnail images from master images. Nice and simple. To make sure I can match all variations in spelling of...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.