Solved

Audio/video in xml

Posted on 2006-07-18
4
295 Views
Last Modified: 2012-06-21
Hi ,
I would like to have an audio file or video to be part of an xml, i.e as base64 format or other not a link. I have some questions regarding it:
I have used the org.apache.commons.codec.binary.Base64 to encode an image, since the encoding returns a String I used it to encode the audio and it returned a string which is great, but how to decode it? since I dont know how to use the same library to decode I used the sun.misc to decode, but this seems to be only able to decode to an image (using BufferedImage), but I didnt an equivalent function for audio or video

questions and points:
1-what is the difference between the both libraries and which one do you advice to use? (50 ps)
2-code snippets or guidance to a decoder/encoder for video audio using base64 format?(350 ps)

thx
0
Comment
Question by:TheSilverBullet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 17131385
You ought to stick to the commons library as the sun classes are not fully supported. What problems are you having decoding?
0
 

Author Comment

by:TheSilverBullet
ID: 17131402
do you have an example of decoding using the commons ?
0
 
LVL 9

Accepted Solution

by:
arioh earned 250 total points
ID: 17134094
you can use org.apache.soap.encoding.soapenc.Base64 class
it has simple encode and decode methods
source is here http://www.koders.com/java/fidDCD43FB87BC62F695BDB4A763921D092B6CB1E4B.aspx
0
 
LVL 35

Assisted Solution

by:girionis
girionis earned 150 total points
ID: 17144349
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question