saving an image to a server using a java applet
===

so, I am trying to save a png image to my server that my applet (UNSIGNED) is running on.  I have looked on here and have seen a couple examples.  what is the best way to do this?  I am using PHP on my server just FYI.  

If you could make an explanation of classes used and a stepwise methodology it would be great.  I am trying to learn to program (not just copy code).  

I was thinking of making a fileoutputstream, but since its an applet, I had problems actually creating the file.

I am not sure if I can install a servlet on the server because its 3rd party...

I have also looked at some post methods, which seem to be the way to go, but I am unsure how they work...  I have used post methods for text in html and php, but never done it in java.  I noticed most of take the image, convert it to a byte array and then post that array, which I can partially understand, but how do I reconvert in php? 

or if anyone has any better ideas please let me know


thanks alot,

Jason


