473,545 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

downloading a .gif

Hello,

I have a page with lots of thumbnails of photos. I want the user to be
able to dload a big version of the photo (also present on the server)
by either

1) clicking on it (left mousebutton) and have a 'save as...' dialog
or
2) right-clicking on it and have a 'save as...' dialog. But I don't
want the the whole photo to dload to the user before he is able to
rightclick it.

displaying the big photos as thumbnail and then right-clicking them is
not an option since it takes ages for a page with thumbanils to build
up...

I am not sure if 1 is possible and not sure if 2 is possible... Can
anyone give me a hint?

thanks ,

Marc
Jul 16 '05 #1
3 2116
With total disregard for any kind of safety measures
me**********@ya hoo.com (Marc) leapt forth and uttered:
Hello,

I have a page with lots of thumbnails of photos. I want the user
to be able to dload a big version of the photo (also present on
the server) by either

1) clicking on it (left mousebutton) and have a 'save as...'
dialog or
2) right-clicking on it and have a 'save as...' dialog. But I
don't want the the whole photo to dload to the user before he is
able to rightclick it.

displaying the big photos as thumbnail and then right-clicking
them is not an option since it takes ages for a page with
thumbanils to build up...

I am not sure if 1 is possible and not sure if 2 is possible...
Can anyone give me a hint?

thanks ,

Marc


So, you want the user to be shown an image that is neither a
thumbnail nor has been downloaded to his computer nor is the full-
size image?

I think if you examine what you're asking for you'll find it's not
just impossible, but totally illogical as well.

--
There is no signature.....
Jul 16 '05 #2
Marc wrote:
Phil Roberts <ph*****@HOLYfl atnetSHIT.net> wrote in message
news:<Xn******* *************** ***@216.196.97. 132>...
With total disregard for any kind of safety measures
me**********@ya hoo.com (Marc) leapt forth and uttered:
> Hello,
>
> I have a page with lots of thumbnails of photos. I want the user
> to be able to dload a big version of the photo (also present on
> the server) by either
>
> 1) clicking on it (left mousebutton) and have a 'save as...'
> dialog or
> 2) right-clicking on it and have a 'save as...' dialog. But I
> don't want the the whole photo to dload to the user before he is
> able to rightclick it.
>
> displaying the big photos as thumbnail and then right-clicking
> them is not an option since it takes ages for a page with
> thumbanils to build up...
>
> I am not sure if 1 is possible and not sure if 2 is possible...
> Can anyone give me a hint?
>
> thanks ,
>
> Marc
>


So, you want the user to be shown an image that is neither a
thumbnail nor has been downloaded to his computer nor is the full-
size image?

I think if you examine what you're asking for you'll find it's not
just impossible, but totally illogical as well.


Phil,

I am sorry if I offended you by my question. However, what I am asking
for is not as illogical as it may seem to you. Since you choose not to
deal with the question but start insulting me instead I will find a
different way to solve my question.

Marc


Marc,

he wasn't insulting you, far from.
He was just pointing out that what you want to do -based on your description
- is basically impossible.
How do you want to show the user a site with images, if you don't want him
to download any at all?
Size is irrelevant, the fact that he is not meant to download images as you
describe it, make it impossible.

He was only asking you to re-read what you wrote and think it over again to
see where your logic fails.

If it's not deprecated, HTML has a tag for images lowres that should allow
you to download any image in a low resolution for quick display .. once all
images are loaded they will then be shown in full resolution.
Secondly, you could make doublets of your images, one in fullsize and
resolution and then a standartized smaller one for thumbnails. Which seems
to be what you seek ...
Then, building the image pages with thumbnails and loading it with lowres
should actually load those pages very fast and show the initial images.
Once the initial page is done, the images are shown full resolution for the
user to click on each thumbnail to get full size and full resolution
images.

... but still, he was only telling you about the flaw in your logic.

/Andreas

--
Registeret Linux user #292411
Jul 16 '05 #3
Marc wrote:
displaying the big photos as thumbnail and then right-clicking them is
not an option since it takes ages for a page with thumbanils to build
up...


Not it doesn't if you don't build the thumbs every time. Lets say you have a
directory images/. Create two more inside, 'fullsize' and 'thumb'.

On each page load you check if the requested image exists in images/thumb/,
if it doesn't, you create it and store it there. As you add new images to
images/fullsize/, thumbs get created when requested, no additional
overhead.

--
Dado

Mistakes are often the stepping stones to utter failure.
Jul 16 '05 #4

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

Similar topics

4
2150
by: Luke StClair | last post by:
Only marginally belonging in this newsgroup... but oh well. I've just started writing in python, and I want to make the files available on the web. So I did the standard <a href="mypath/myfile.py"> and not surprisingly, it displays like a webpage, but just the code. If I gzip it, and then link to the new file, it will download, but its so...
2
7023
by: Dave | last post by:
Dear Sirs, Is there a way to get the width and height of an image without downloading the image, or with just downloading a minimal portion of the image? For instance, I have a list of 10,000 image urls, and I would like to get the width and height of every image without spending the time and bandwidth of downloading every image.
0
1511
by: TJ | last post by:
Hi, I've written code web-based uploading and downloading. Here is some code for it. For saving file into MS-SQL database, SaveFileIntoDB(HttpPostedFile file) { int fileLength = file.ContentLength; byte fileContent = new byte; int lastPos = file.FileName.LastIndexOf('\\');
2
2419
by: Bala | last post by:
Hi I am trying to download the PDF files from my webserver using ASP.Net. All my files are stored at F Drive on webserver. Like this F:\Main Folder\Sub Folder\Files\File1.pdf I am impersonating the domain user account and downloading the file, It seems the impersonate is got success, but its not download the file. Its simply...
4
2921
by: Joe | last post by:
I'm hosting my web service on a Windows 2003 box which is remotely located. When trying to add a web reference to a C# project I get an error message 'There was an error downloading 'http://mydomain.com:port/webservice.asmx' The operation has timed-out (I've tried with and without using a separate port for the service) The weird thing is...
1
2055
by: just.starting | last post by:
Hi, My dot net client downloads files and checks for any new files time to time. The server is apache2.0.53 server. So what happens is that my file download thing works fine if I dont try to call any page from the server while downloading. If I try to call a single page while downloading a file then the page request goes time out and the...
3
2779
by: just.starting | last post by:
Hi, My dot net client downloads files and checks for any new files time to time. The server is apache2.0.53 server. So what happens is that my file download thing works fine if I dont try to call any page from the server while downloading. If I try to call a single page while downloading a file then the page request goes time out and the...
5
5945
by: fniles | last post by:
We created an ActiveX control and marked it as safe for scripting using Implements IObjectSafety. We then created a CAB file and signed it using Verisign. We also created a license file (LPK file) for it. We use this control on an ASP page. We put the CAB file for the AX control and VBRun60.CAB in the same folder with all the ASP files....
0
1623
by: just.starting | last post by:
I am having problem while downloading files from an apache server2.0.53 with php4.3.10.While downloading some files it generally stops after downloading some specific amount and then stops downloading with the error message: "the source file could not be read". And the error is not dependent on the size of the file, as I can download a file of...
23
1801
by: Doug van Vianen | last post by:
Hi, Is there some way in JavaScript to stop the downloading of pictures from a web page? Thank you. Doug van Vianen
0
7486
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7416
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7676
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7776
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6001
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5347
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3473
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1905
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.