Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Constructing a URL object from a byte array

807597Jan 9 2005 — edited Jan 9 2005
Hello,
My applet generates a sequence of bytes which are in .au audio file format. To play the sound I need to pass a URL object to (applet).getAudioClip(URL url), so I need someshow to present my byte array as URL. With an application this woun't be any problem - write bytes to a file and pass this file's URL to getAudioClip(URL url), but this is an applet.
byte[] au_bites = createAuBytes();
// here I need these bytes as URL
getAudioClip(URL url).play();
Could you pls suggest me a solution?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 6 2005
Added on Jan 9 2005
4 comments
470 views