• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

play a wmv file in jsp

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I need some help.
What i am trying to do is as follows:
I have an action class that saves a .mp3 /.wmv file to my database as a blob object , and after that i m forwarding the request to my playfile.jsp and passing a byte array for that i get from the same blob object saved above using request.setAttribute("BYTESARRAY",bytes)
now it seems to be working fine if i use an image file insead of a sound file , the images shows up in the jsp . i m using scriplet , as i dont know what else to use as follows



now what it does is , it tries to open windows media player(not in the browser , but as standalon) and then gives message in the windows media player that its not able to play the file as the server is unavailable.

what i actually wanted to do was , from the page where i browse and upload the file the servlet should choose the file upload it the byte array through the action and set it to the request and forward the request to next jsp where jsp should show the embedded windows media player and just play the file ..
is it possible with jsp?
-thanks
 
prakash chauhan
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Okay i was thinking if it would be good solution to play my sound files.

user will see the link for the sound file on the jsp , when clicked on the link i ll fetch the data from the database and save it to a file in a temp folder and then from that temp folder i ll play that file using the
html 's <EMBED> tag, but can we specify the SRC at RunTime?
-Thanks
 
I am mighty! And this is a mighty small ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic