This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes HTML Link to a Quicktime file displays garbage characters in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "HTML Link to a Quicktime file displays garbage characters in IE " Watch "HTML Link to a Quicktime file displays garbage characters in IE " New topic
Author

HTML Link to a Quicktime file displays garbage characters in IE

harsha vardhany
Greenhorn

Joined: Jun 03, 2009
Posts: 3
HTML Link opening a page that Redirect to a Quicktime .MOV file displays garbage characters in IE when Target is _blank.

I have a .jsp page that does a redirect to a Quicktime .mov file. When I create a link to this .jsp page, if the link opens in the same window (i.e. no Target defined on the anchor tag), all is good and IE displays the Quicktime movie just fine. However if I set the Target of the link to "_blank" which opens a new window, IE displays garbage characters on the screen (as if you open a binary file). The URL in both cases (with or withotu target) is correct (i.e. http://localhost/movies/myMovie.mov). Any suggestions please...Thanks in Advance.


harsha..
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19232

Have you set the content type properly?


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
harsha vardhany
Greenhorn

Joined: Jun 03, 2009
Posts: 3
content type is on my jsp page is like below

<META http-equiv="Content-Script-Type" content="text/javascript">
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2561
    
    2

"harsha vardhan y " welcome to Javaranch
Rob is asking about the content-type not the content-script-type.

And please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.


SCJP, SCWCD.
|Asking Good Questions|
harsha vardhany
Greenhorn

Joined: Jun 03, 2009
Posts: 3

content type is sets like below .

res.setContentType("text/html; charset=UTF-8");
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19232

Then it's logical the browser tries to render it as HTML. Internet Explorer sometimes ignores the content type and uses the extension only, that could be why it was working with the "normal" link. Try using the proper content type, which is video/quicktime for Quicktime movies.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: HTML Link to a Quicktime file displays garbage characters in IE
 
Similar Threads
Challenge is on! Eyeball on the floor
opening .xls file
!!!!....PROBLEM ...!!!! in opener window form update.
Question about hyperlink...
How to do it in Struts, pls. help!