Hi,
I have written a webpage, showpict.aspx,
in C# that will fetch a jpg-picture from a database
and display it thru a html-tag like:
<img src="showpict.a spx?id=23">
where the 'id' parameter tells what picture from the
db to display.
Problem is, if the user e.g. rightclicks the picture
in the web-brower, then does 'Save Picture as...'
the suggested file-extension is wrong.
IE6 will suggest the filename: untitled.bmp
while Firefox simply suggests: showpict.aspx.
Q: How can I get the browser to suggest a name ending with .jpg?
I have seen this work as desired on other sites...
Is there a http-header to do this trick or what?
Thanks, 4 1258
Try : http://support.microsoft.com/kb/260519/en-us
--
<gr***@spray.se > a écrit dans le message de
news:11******** **************@ o13g2000cwo.goo glegroups.com.. . Hi,
I have written a webpage, showpict.aspx, in C# that will fetch a jpg-picture from a database and display it thru a html-tag like:
<img src="showpict.a spx?id=23">
where the 'id' parameter tells what picture from the db to display.
Problem is, if the user e.g. rightclicks the picture in the web-brower, then does 'Save Picture as...' the suggested file-extension is wrong. IE6 will suggest the filename: untitled.bmp while Firefox simply suggests: showpict.aspx.
Q: How can I get the browser to suggest a name ending with .jpg? I have seen this work as desired on other sites...
Is there a http-header to do this trick or what?
Thanks,
Response.AddHea der("Content-Disposition", "inline;filenam e=test.jpg")
Here are more details: http://steveorr.net/articles/EasyUploads.aspx
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
<gr***@spray.se > wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. . Hi,
I have written a webpage, showpict.aspx, in C# that will fetch a jpg-picture from a database and display it thru a html-tag like:
<img src="showpict.a spx?id=23">
where the 'id' parameter tells what picture from the db to display.
Problem is, if the user e.g. rightclicks the picture in the web-brower, then does 'Save Picture as...' the suggested file-extension is wrong. IE6 will suggest the filename: untitled.bmp while Firefox simply suggests: showpict.aspx.
Q: How can I get the browser to suggest a name ending with .jpg? I have seen this work as desired on other sites...
Is there a http-header to do this trick or what?
Thanks,
Hi,
Are you especifynng the correct content type?
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
<gr***@spray.se > wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. . Hi,
I have written a webpage, showpict.aspx, in C# that will fetch a jpg-picture from a database and display it thru a html-tag like:
<img src="showpict.a spx?id=23">
where the 'id' parameter tells what picture from the db to display.
Problem is, if the user e.g. rightclicks the picture in the web-brower, then does 'Save Picture as...' the suggested file-extension is wrong. IE6 will suggest the filename: untitled.bmp while Firefox simply suggests: showpict.aspx.
Q: How can I get the browser to suggest a name ending with .jpg? I have seen this work as desired on other sites...
Is there a http-header to do this trick or what?
Thanks, This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Michael |
last post by:
All,
I'll asked a question but I was not detailed (clear) enough for people to
help so I'll retry.
I have a cgi script pass a variable from one page to the next. The
'receiving' page replaces this variable (in this case %filename%) with
whatever was passed.
This works fine when the page is called from the cgi script because it has
|
by: Sharad Gupta |
last post by:
i have this problem of capturing the filename on the instance when
onclick is activated in the <body>
the function should catch the filename and display it.
Second problem, i have to catch the image name in the same fashion
using =onclick showimage(this). Is this possible at at
I have tried all combinations of
document.getElementbyId();...
|
by: Lumpierbritches |
last post by:
I'm trying to move my images from my main folder to an image folder for the
database to store pictures of animals. I borrowed code that works great if I
put all the images in the main folder where the db is located. I would like to
move them to their own folder and I don't know where to begin.
here is the code:
Private Sub Form_Activate()...
|
by: DAC |
last post by:
Hello.
How can I Respose.BinaryWrite a file but preserving the original filename.
Explaining better:
Suppose a webform that displays images stored on my database. The page
shows, say, 5 pics at a time.
I want the user to be able to right-click over a pic and use "Save Picture
As..." from IE.
But, since the image is "BinaryWritten", the...
|
by: grz01 |
last post by:
Hi,
I have written a webpage, showpict.aspx,
in C# that will fetch a jpg-picture from a database
and display it thru a html-tag like:
<img src="showpict.aspx?id=23">
where the 'id' parameter tells what picture from the
db to display.
| |
by: charliewest |
last post by:
Hello -
I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#) is
there any way to temporarily save an image to a session object, and after
running some other operations, later retrieve the image from the session
object, convert it back to an image, and re-save it to the database?
Thanks?
|
by: Abhishek |
last post by:
can anybody tell how to fetch image from database(access) to the
visual basic picture box control. the code i have been using is as
below but it gives me invalid paramter error....
Dim connection As New OleDb.OleDbConnection()
Dim cmd As New OleDb.OleDbCommand()
cmd.CommandText = "select ID,Name,Description,Image from
MASTER where ID like...
|
by: Anoosha |
last post by:
Dear Programmers I need your help,
I have a PictureBox there I load A picture retrieved from Database.
This so far good, but Now I want to scan the picture line by line horizontaly, to find which line of the picture that contains most pixels. How can I do that ?
Many Thanx
|
by: MattGaff |
last post by:
I have made an imagelist and populated it with a few images where the filename of each of the files is important.
I can generate the random images in a PictureBox when I click a button. The code is:
Me.bxPics.Image = ImgLst.Images.Item(i)
where i is a randomly generated number. Underneath the picture box is a text box where I would like the...
|
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...
|
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...
| |
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. ...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |