Hello 

You cant send raw binaries via a http api 
two things i suggest you may do

1) convert your binary data  to hexadecimal (hex) Xters at the server site  and 
send it across the web as hex data then reconvert your  hex data to binaries on 
the browser.

2) Save the image on a path on the server, obtain the url to the path of the 
image
    return the url with httpservice (as a string offcourse) and set as 
imagepath to your image control.  


All the best !



Warm RegardsTunde Majolagbe+2348028320370, 018782170. *Exchange a Dollar, we 
still have ONE each, exchange an idea, we have TWO each.*Calm Down!!!  It’s 
just a mirage, like other worries it will soon fade away.   

--- On Tue, 1/11/11, method_air <loudj...@hotmail.com> wrote:

From: method_air <loudj...@hotmail.com>
Subject: [flexcoders] HTTPService post to return an image?
To: flexcoders@yahoogroups.com
Date: Tuesday, 1 November, 2011, 19:03
















 



  


    
      
      
      Is it possible to return an image object using HTTPService?



The fault method executes when I attempt to do this:



var http:HTTPService = new HTTPService();

    http.url = "myScript.ashx";

    http.method = "POST";

    http.resultFormat = "object";



Should URLLoader be used instead?



Cheers,



Philip





    
     

    
    






  








Reply via email to