I have a java applet which I am using to send a file back to my server with – on the server end I want to receive this on a php page.
Below is the java code which is doing the sending, on the php side of things I have checked the global arrays and I have the data passed by the URL, but not the file data. I have really searched and scratched on this one so any help appreciated.
SOLVED – as so often happens one posts a question after days of battling and mere minutes later a solution presents.
I got thinking after the comment about using SOAP that I remembered using cURL for transferring XML data once before. a few searches later and I came across a much simpler and very elegant solution.
basically you can access the PUT data in php by using
so now it works awesomely
i used a lot of times Soap Messages to get Data From PHP to Java that works fine
So Use PHP as Webservice and Communicate via SOAP
Setup a WSDL File
Generate Java Stubs and Skeletons
Load WSDL into a php skript
And do your logic in the php
Then use the Java Stubs to call the server and transmit your data