as far as I know a Media object can only be created using an URI. I would like to read the media (audio) from a database as a stream and play it using the Media object.
How can it be done?
As the documentation here says that "The supplied URI must conform to RFC-2396 as required by java.net.URI." and when you look at the URI class for more details it supports FILE location. So a possible approach would be to fetch the media file and store it in a temp location and then use Media class.