Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

How to translate byte[] to PImage?

$
0
0

in Server sketch, i take a picture with Processing’s Video library and send a byte array to client’s buffer

like this,,

/**
void mousePressed() {
 capture.save(“temp.jpg");
 byte[] b=loadBytes(“temp.jpg");
 server.write(b);
}
*/

but i have no idea how to convert this byte array to PImage format in Client’s sketch.

is there any byte[] to Pimage converting method in processing???


Viewing all articles
Browse latest Browse all 2896

Trending Articles