Saving a PDF to web-server: how can I covert a PGraphics object into a byte[]
in
Programming Questions
•
1 year ago
Hi!
I'm woking off the code found here (
http://wiki.processing.org/w/Saving_files_to_a_web-server) to write some PDFs to web-server and running into some trouble.
I'm created my PDFs off screen using createGraphics() to create a PGraphics object.
Based on the code snippet from the link above:
I need to pass this function a byte[] not a PGraphics object.
I can't seem to figure out how to covert the PGraphics to a byte[]
Any thoughts?
Thanks in advance!
1