hhmm.. thats exactly what i am doing im2amit...
I am already chopping the "stream" in chunks.. and I'm using "stream" because it's actually NOT a stream but a simple 1.5 megabyte MP3 file which is stored on a server...
Also the exception is caught while trying to do player.prefetch()... But not on a server-stream but on a ByteArrayInputStream :
Code:
HttpConnection conn = (HttpConnection)Connector.open(url, Connector.READ_WRITE);
InputStream is2 = conn.openInputStream();
size = is2.read(buf);
ByteArrayInputStream bis = new ByteArrayInputStream(buf);
player = Manager.createPlayer(bis,"audio/mpeg");
player.prefetch();
do you have any link to any documentation or explanation regarding this exception im2amit ?