Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
GeneralRe: Mouse and button position difference Pin
p3rson22-Sep-09 8:13
p3rson22-Sep-09 8:13 
GeneralRe: Mouse and button position difference Pin
EliottA22-Sep-09 8:21
EliottA22-Sep-09 8:21 
GeneralRe: Mouse and button position difference Pin
p3rson22-Sep-09 8:50
p3rson22-Sep-09 8:50 
GeneralRe: Mouse and button position difference Pin
EliottA22-Sep-09 8:53
EliottA22-Sep-09 8:53 
GeneralRe: Mouse and button position difference Pin
p3rson22-Sep-09 8:56
p3rson22-Sep-09 8:56 
GeneralRe: Mouse and button position difference Pin
Ian Shlasko22-Sep-09 9:27
Ian Shlasko22-Sep-09 9:27 
GeneralRe: Mouse and button position difference Pin
p3rson22-Sep-09 9:41
p3rson22-Sep-09 9:41 
QuestionContent-Disposition Attachment not working in IE7 Pin
sudhirBirlapur22-Sep-09 6:14
sudhirBirlapur22-Sep-09 6:14 
Hi, everyone. The situation is, I am converting a tiff image file into byte[], then to stream then saving it as jpeg image format, then display it on browser, so that the jpeg opens in a picture viewer instead of webpage. The code works in IE 6 and firefox, but does not work in IE 7. In IE 7, the blank page appears and automatically closes. The code is as follows:-

System.IO.Stream _stream = new MemoryStream(byteArray);
Bitmap _bmp = new Bitmap(_stream);
Response.Clear();
Response.AddHeader("Content-Disposition","attachment;filename=adc.gif");
Response.ContentType = "image/gif";
_bmp.Save(Response.OutputStream, ImageFormat.Gif);
Response.End();
_bmp.Dispose();
_stream.Close();


This code is called in the page_load of a page in server a. Since the tiff image is located on a different server(server b) other than the web server, the image path is passed to web service located at server b, image is read and converted to byteArray and returned to server a. I guess the problem is with Content-Disposition.

Any help is appreciated.
AnswerRe: Content-Disposition Attachment not working in IE7 Pin
EliottA22-Sep-09 7:35
EliottA22-Sep-09 7:35 
AnswerRe: Content-Disposition Attachment not working in IE7 Pin
Manas Bhardwaj22-Sep-09 9:07
professionalManas Bhardwaj22-Sep-09 9:07 
GeneralRe: Content-Disposition Attachment not working in IE7 Pin
sudhirBirlapur22-Sep-09 18:59
sudhirBirlapur22-Sep-09 18:59 
Questionwriting usb driver in visual C#.Net.? Pin
Mir_As22-Sep-09 4:23
Mir_As22-Sep-09 4:23 
AnswerRe: writing usb driver in visual C#.Net.? Pin
Dave Kreskowiak22-Sep-09 4:36
mveDave Kreskowiak22-Sep-09 4:36 
GeneralRe: writing usb driver in visual C#.Net.? Pin
Mir_As22-Sep-09 5:04
Mir_As22-Sep-09 5:04 
GeneralRe: writing usb driver in visual C#.Net.? Pin
EliottA22-Sep-09 5:10
EliottA22-Sep-09 5:10 
GeneralRe: writing usb driver in visual C#.Net.? Pin
Dave Kreskowiak22-Sep-09 5:19
mveDave Kreskowiak22-Sep-09 5:19 
GeneralRe: writing usb driver in visual C#.Net.? Pin
Xmen Real 22-Sep-09 5:36
professional Xmen Real 22-Sep-09 5:36 
GeneralRe: writing usb driver in visual C#.Net.? Pin
Dave Kreskowiak22-Sep-09 6:26
mveDave Kreskowiak22-Sep-09 6:26 
GeneralRe: writing usb driver in visual C#.Net.? Pin
Richard MacCutchan22-Sep-09 6:27
mveRichard MacCutchan22-Sep-09 6:27 
GeneralRe: writing usb driver in visual C#.Net.? Pin
Xmen Real 22-Sep-09 6:36
professional Xmen Real 22-Sep-09 6:36 
AnswerRe: writing usb driver in visual C#.Net.? Pin
Luc Pattyn22-Sep-09 5:26
sitebuilderLuc Pattyn22-Sep-09 5:26 
GeneralRe: writing usb driver in visual C#.Net.? Pin
EliottA22-Sep-09 6:57
EliottA22-Sep-09 6:57 
GeneralRe: writing usb driver in visual C#.Net.? Pin
DaveyM6922-Sep-09 7:46
professionalDaveyM6922-Sep-09 7:46 
GeneralRe: writing usb driver in visual C#.Net.? Pin
Luc Pattyn22-Sep-09 11:49
sitebuilderLuc Pattyn22-Sep-09 11:49 
AnswerRe: writing usb driver in visual C#.Net.? Pin
DaveyM6922-Sep-09 7:45
professionalDaveyM6922-Sep-09 7:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.