• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTML Link to a Quicktime file displays garbage characters in IE  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 21136
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you set the content type properly?
 
harsha vardhany
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
content type is on my jsp page is like below

<META http-equiv="Content-Script-Type" content="text/javascript">
 
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
harsha vardhany
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

content type is sets like below .

res.setContentType("text/html; charset=UTF-8");
 
Rob Spoor
Sheriff
Posts: 21136
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!