I am building an app using SOAP/web services to interact with a Java API. All was going swimmingly until now.
I need to pass an output stream as a param to a Java method from PHP. I am pretty sure I need to use PHP output buffering and fwrite
, I am just not sure how to go about it.
I know you can use Java in php by using $myJavaFromPHP = new Java ...
but I would prefer not to do it that way if at all possible*.
If it helps any, the parameter specs in java is a base64 encoded, content-type of application/octet-stream.
So, is this possible? If so, what is the best way to do it?
*I am trying to do this in regular PHP, w/ no dependencies. But if using PHP's Java class is the only way to do it, how?