Java Mailing List Archive

http://www.junlu.com/

Home » JDOM Projects »

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

jdomuser

2008-08-30


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) imgListIter.next();
  byte[] imgBytes = Base64.decode(imgEl.getText());
  ......
}
//imgBytes is returned null in the first iteration, what is the probable
reason you guess?

regards.
--
Sent from the JDOM - General mailing list archive at Nabble.com.

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.