Jump to content

Download an image instead of showing it in browser?

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Keysle

Keysle

    Newbie

  • Members
  • Pip
  • 1 posts
Is there a way to make my webpage download an image instead of showing it in browser?
I know i can right click save as. but when a user clicks on the link, I want the image to download instead of displaying in browser.

#2
Sinipull

Sinipull

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 386 posts
All the images will be automatically downloaded to the temporary internet files folder.
Are you trying to make a virus or something?

This shouldn't even be on Java section.
.

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Ultimately, you cannot control what a browser does with a file. Linx will probably ignore it completely. Most other browsers attempt to display the image, if they know how. Why not wrap the image in a zip file for download?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users