×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    problem in reading data( Text file and audio file)in stream by byte array

    Hi expert

    please help me i want to read data from file text and audio and send by GPRS , but for reading data by byte array in symbian 9.0., how i do this? please help me .

    Thanks

    Amit

  2. #2
    Regular Contributor
    Join Date
    Oct 2007
    Location
    Coimbatore,India
    Posts
    114

    Re: problem in reading data( Text file and audio file)in stream by byte array

    Hi,

    You can use streaming buffers[inputsream,outputstream] to read data[text and audio].

  3. #3
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: problem in reading data( Text file and audio file)in stream by byte array

    Hi i use this but aap main closed , please give me any example code for read file

    Thanks

  4. #4
    Regular Contributor
    Join Date
    Oct 2007
    Location
    Coimbatore,India
    Posts
    114

    Re: problem in reading data( Text file and audio file)in stream by byte array

    Quote Originally Posted by aamitgupta View Post
    Hi i use this but aap main closed , please give me any example code for read file

    Thanks
    This is an example code to read text data from a file.
    This is present in every basic GUI programs you create.

    RFs fsSession;
    RFile rFile;
    User::LeaveIfError(fsSession.Connect());
    CleanupClosePushL(fsSession);

    User::LeaveIfError(rFile.Open(fsSession,KFileName, EFileStreamText));
    CleanupClosePushL(rFile);

    RFileReadStream inputFileStream(rFile);
    CleanupClosePushL(inputFileStream);

    HBufC* fileData = HBufC::NewLC(inputFileStream, 32);
    CleanupStack::PopAndDestroy(4); // filedata, inputFileStream,
    //rFile, fsSession
    fsSession.Close();


    I think you might have seen this code already.

Similar Threads

  1. To play raw audio data file
    By pawans in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2008-12-11, 11:38
  2. Help needed with a 3gp file...
    By joedoe_1981 in forum Streaming and Video
    Replies: 0
    Last Post: 2007-07-18, 18:58
  3. Problem in playing in an audio file.
    By PankajNeve in forum Symbian
    Replies: 3
    Last Post: 2007-03-09, 13:52
  4. Problem in audio stream recording into a file
    By ritam.banik in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-06-01, 06:41
  5. Half Duplex Audio Streaming
    By subhrajyotisaha in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-05-25, 04:39

Posting Permissions

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