Java Mailing List Archive

Home » JDOM Projects »

[jdom-interest] how to manipulate images in a swf document, through
 its xml counterpart



Author LoginPost Reply

Hello, i have converted my swf document to xml using a java package in order
to manipulate(filtering etc.) image contents and replace them back to the
same document. I think this can be achieved easier by using the xml file.
Here is my piece of code that returns a null image data:

List imgList = root.getChildren("definebitsjpeg2");
ListIterator imgListIter = (ListIterator) imgList.iterator();
while (imgListIter.hasNext()) {
  Element imgEl = (Element);
  byte[] imgBytes = Base64.decode(imgEl.getText());
//imgBytes is returned null in the first iteration, what is the probable
reason you guess?

Sent from the JDOM - General mailing list archive at

To control your jdom-interest membership:
©2008 - Jax Systems, LLC, U.S.A.