Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2009

    J2ME RecordStore Vs Inputstream

    Hello every body

    Please help me in this problem

    My app will receive an media (audio or video) file, that existing on the server, as array of bytes then store it into Record Store as multiple records, after that app need to read the stored media file from the Record Store(multiple records) and accumulate in single input stream. And use that input stream to play media file using Manager.createPlayer(Inputstream,string).

    I want to know how can i read multiple records from Record Store and accumulate in single input stream.

    RecordStore store;
    int id;
    // play back from a record store
    try {
    InputStream is = new ByteArrayInputStream
    Player player = Manager.createPlayer(is, "audio/X-wav");
    catch (IOException ioe) {
    catch (MediaException me) {

    The above piece of code is read single record and store it in inputstream.

    Please help me.It's very urgent.

  2. #2
    Regular Contributor
    Join Date
    Jan 2008

    Re: J2ME RecordStore Vs Inputstream

    what do you mean "multiple records"? You want to save seveval (different) media contents (audio, videos)? If so, you can save as byte array, and get it back using the basics steps of record store, such as ByteArrayOutputStream and DataOutputStream (for writing data) and RecordEnumeration for reading data.


Similar Threads

  1. Can J2ME be used for sending MMS Message ?
    By seno_ap in forum Mobile Java General
    Replies: 1
    Last Post: 2006-11-24, 14:36
  2. need urgent guidance on j2me
    By cogni_niru in forum Mobile Java General
    Replies: 1
    Last Post: 2005-11-13, 15:02
  3. Symbian and non Symbian J2ME
    By thongtom in forum Mobile Java General
    Replies: 2
    Last Post: 2005-06-28, 10:52
  4. RecordStore question:
    By aspaans in forum Mobile Java General
    Replies: 3
    Last Post: 2004-02-23, 01:10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts