473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to display an image in php consumed from JWS as soap message

Hi All ,
I am New to this Form i am working on project to consume Java Webservice from PHP (front end). So i need to display an image sent from JWS (WSDL) mode in PHP. I have used diff methods in JWS to send the image viz as BLOB type or byte type. But unable to display it in PHP. It need to be decoded back to display which i am unable to do. Does PHP's current version has this capabilty or not??. Here is my code snippet of the soap Response genertated to be consumed in PHP.

Expand|Select|Wrap|Line Numbers
  1. stdClass Object
  2. (
  3.     [return] => stdClass Object
  4.         (
  5.             [photo] => stdClass Object
  6.                 (
  7.                     [bytes] =>     Ю —5N5MGIF89a ‡ЯИ5Sх    z        jGIF89a ‡!1џZZZcџkkksss„„„œџЅЅЅНRННЦЮЮЦЮЮЮжЅЮо{оо*„чJяч„œяџяJŒяRcяœBџџcџœџ1џBџ„џЮџЮџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ
  8.  )
  9.  
  10.             [student_address] => 123-933-22, LA, Hyd ,India
  11.             [student_history] => Completed M.Tech from             [student_hobbies] => Eating, Chatting ,Sleeping etc ...
  12.             [student_id] => 1
  13.                    )
  14.  
  15. )
  16.  
I am accessing this response thru this PHP code ::

Expand|Select|Wrap|Line Numbers
  1. $wsdl = "http://localhost:8084/webserviceproj/WebServicesService?wsdl";
  2. $client = new soapclient($wsdl,array('trace' => 1));
  3. $res=$client->__soapCall('studDetails', array('parameters' => $params));  
  4. $variables = get_object_vars($res);
  5. $keys = array_keys($variables);
  6. $abc= $variables[$keys[0]]->photo;
  7.  $aa = $abc->bytes;
  8.  
so i need to display image from SOAP response. see i am sending either BLOB Datatype or byte from Java. Can any one help me out. thanks
Jan 24 '08 #1
0 1211

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Dave Quigley | last post by:
Hello everyone.... Im currently starting my targa support project again for ..NET and I am wondering if there are any particular interfaces or classes that Im supposed to extend in order to do this...
12
by: Sharon | last post by:
Iт€™m wrote a small DLL that used the FreeImage.DLL (that can be found at http://www.codeproject.com/bitmap/graphicsuite.asp). I also wrote a small console application in C++ (unmanaged) that uses...
6
by: seeIT | last post by:
In a client application a simple webservice (add/multiply) was added to solution panel but proxy methods do not appear. WSDL description in solution panel follows: <?xml version="1.0"...
5
by: Peter Lapic | last post by:
I have to create a image web service that when it receives an imageid parameter it will return a gif image from a file that has been stored on the server. The client will be an asp.net web page...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
4
by: Nicolas | last post by:
Hello! I have a question: I have a database in MySql that has two fields (code and image). Now, I want to create a WebService that takes the image of the most current row (the code is the date...
3
by: c676228 | last post by:
Hi everyone, I have a piece of code in sales.aspx.vb like this: Protected WithEvents Message As System.Web.UI.WebControls.Label Try ... ChartImage.ImageUrl = "ChartGenerator.aspx?" + DataStr +...
3
by: Mutant Merv | last post by:
Sorry all it's me again. Can you see from the following why my picture will not appear on the web page. <html> <head> <title>Bubble & Suds</title> </head> <img src="bs3.jpg" /> <body...
0
by: Philluminati | last post by:
I have a Perl SOAP Server which returns this SOAP Message when invoked: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance"...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.