Re: [flexcoders] HTTPService post to return an image?
You can use base64 to encode your image on the server side, and then decode in flex to display it. Regards, Rogério Gonzalez On Tue, Nov 1, 2011 at 5:20 PM, claudiu ursica the_bran...@yahoo.comwrote: ** HTTPService cannot handle binary data and images fall under this category. U have top go URLLoader. C -- *From:* method_air loudj...@hotmail.com *To:* flexcoders@yahoogroups.com *Sent:* Tuesday, November 1, 2011 7:03 PM *Subject:* [flexcoders] HTTPService post to return an image? 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
Re: [flexcoders] HTTPService post to return an image?
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
[flexcoders] HTTPService post to return an image?
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
Re: [flexcoders] HTTPService post to return an image?
HTTPService cannot handle binary data and images fall under this category. U have top go URLLoader. C From: method_air loudj...@hotmail.com To: flexcoders@yahoogroups.com Sent: Tuesday, November 1, 2011 7:03 PM Subject: [flexcoders] HTTPService post to return an image? 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