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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Saving sound as byte array

 
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi I posted this question in the I/O streams section, but there was little response, and I have a little more info now:

I've ommitted try/catch blocks for clarity,
I am able to play a sound using...


Now, I can turn the file into bytes using..


So what I would like to do is play a sound given a byte[]
I attempted this..., but it threw an Exception

But AudioStram as=new AudioStream(is); throws an exception with message
-> "could not create audio stream from input stream"

Is there any way to solve this?
Thanks for any help
 
    Bookmark Topic Watch Topic
  • New Topic