Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User maheshsudha's Avatar
    Join Date
    Oct 2009
    Posts
    3
    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
    (store.getRecord(id));
    Player player = Manager.createPlayer(is, "audio/X-wav");
    p.start();
    }
    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 thiagobrunoms's Avatar
    Join Date
    Jan 2008
    Posts
    88
    Hello,
    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.

    []'s

Similar Threads

  1. Ayuda con j2me polish
    By robervelez in forum Foro en Español (Spanish Forum)
    Replies: 2
    Last Post: 2007-06-06, 20:44
  2. 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
  3. need urgent guidance on j2me
    By cogni_niru in forum Mobile Java General
    Replies: 1
    Last Post: 2005-11-13, 15:02
  4. Symbian and non Symbian J2ME
    By thongtom in forum Mobile Java General
    Replies: 2
    Last Post: 2005-06-28, 10:52
  5. 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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved