I need a suggestion. Iam developing the face recognistion webservice (SOAP) in java, but front end is php application. User will send the image either by capturing using webcam or uploading the image. But i want this image and its detials as File Object in xml instead path from the server or database. Please suggest me how can i handle this or any other approaches.
Asked
Active
Viewed 308 times
0
-
Take a look at MTOM, which is preferred over using base64 inline. http://stackoverflow.com/questions/1916377/building-large-mtom-xop-messages-with-jax-ws – nif Jul 09 '13 at 19:23
1 Answers
1
Look at one of these:
$requestImageXML = '<img src="data:image/jpeg;base64,' . base64_encode(readfile($filePath)) . '"/>'; $requestImageString = base64_encode(readfile($filePath));and use the string in a relevant way.

Stefanov.sm
- 11,215
- 2
- 21
- 21