?
Solved

Audio/video in xml

Posted on 2006-07-18
4
Medium Priority
?
297 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 750 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 450 total points
ID: 17144349
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

801 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