File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
this week in the
Playing audio/video in jsp
Joined: Dec 30, 2007
Mar 31, 2009 07:44:00
I am using
action and doing like:
response.setContentType("audio/x-wav"); BlobRetriever blobret=new BlobRetriever(); byte audio= blobret.getAudio(); response.getOutputStream().write(audio); return mapping.findForward(null);
I retrieved a BLOB object in the form of byte array and set the response to
The code is working perfectly,
but my audio is opened using Media Player separately.
My aim is to embed the audio in my response.
That is it should play within jsp (using plugin)
I know it can be done using embed tag.
But how can I dynamically call an action and set the embed tag's content
Can I do like <embed src=actionServlet></embed>
I have gone through :http://www.coderanch.com/forums/posts/preList/364096/1590971 but author itself hasnt replied yet.
Help needed from your part.
Author and ninkuma
Joined: Jan 10, 2002
Mar 31, 2009 07:55:39
Please continue any discussion in the original post.
Asking smart questions
Books by Bear
subject: Playing audio/video in jsp
Embed TIFF image in response
Not able to write Binary Data
How to pass jsp values to flash?
Struts with Ajax
play a wmv file in jsp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015