[jdom-interest] how to manipulate images in a swf document, through
its xml counterpart
jdomuser
hakeem35 at live.com
Sat Aug 30 06:18:58 PDT 2008
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.
--
View this message in context: http://www.nabble.com/how-to-manipulate-images-in-a-swf-document%2C-through-its-xml-counterpart-tp19233308p19233308.html
Sent from the JDOM - General mailing list archive at Nabble.com.
More information about the jdom-interest
mailing list