Discussion merging text file and mp3 file with serialization

  • Saturday, July 28, 2012 1:17 PM
     
     

    Hi, I am developing a note taking app, in which user will record the audio and will do some text inputting. At the end I will have one .txt file and another .mp3 file. Now I want to merge this two files in one single file. Further I will also need to separate both the file when user open that single file. So what should I do ? Should I use XML serialization as there is no binary serialization ?

All Replies

  • Sunday, July 29, 2012 10:26 AM
     
     
    well if you dont want to put much effort on it yes think its the best option to use the xml serialisation but maybe better to create a own serializer?
  • Monday, July 30, 2012 11:07 AM
     
     
    how can I do that with XML serialization ?
  • Monday, July 30, 2012 8:22 PM
    Moderator
     
     

    Hello Farhan,

    You could embed the XML data in the MP3 using MP3's ID3 tags.

    http://en.wikipedia.org/wiki/ID3

    -James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

  • Monday, July 30, 2012 8:28 PM
    Moderator
     
     

    If I wanted to include two arbitrary files in a single container file I'd use a ZipArchive .

    --Rob