modifying the asynchronous iamge loader on the wiki to load XMLElements
in
Programming Questions
•
2 years ago
Hi Folks just a quicky i need this code..
/**
DataBuffer taken from
http://wiki.processing.org/w/Asynchronous_data/image_loading
@author toxi
*/
public byte[] getRaw() {
return bytes;
}
to instead return to an XMLElement, much as the getAsImage() does as a PImage. I have some large XML files downloading to my app and have set up the code to do it asynchronously using the image loader on the wiki. However somehow i need to convert "ByteArrayInputStream" or maybe the raw bytes to "XMLElement". I have had a quick look through java.io and through the processing xml.java
file but got lost in the createinput stuff.
Any help much appreciated.
1