OK then, I rewrote it with URLLoader, avoiding the HTTPService.send() call,
using an URLRequest instead: now all of the image bytes get to the client.
Thanks to all who helped.
P.
Dmitri Girski wrote:
Hi Pier,
I said that I am not sure about getting binary data via HTTPService as
I
Thanks for your note, Dmitri.
I have thought about saving the jpg on the server then exposing it through
an URL, but that results in a potential security breach in my system. If I
generate the image on the fly and stream it to the client, I can control
that the client has right credentials to
Thanks to everyone who replied, but nothing changed.
It looks like the problem is in the result byte array, that is _before_ the
loader actually gets in.
Is my way of creating the ByteArray correct ?
How can I inspect the length and contents of lastResult via the debugger ?
Thanks
Dave Cragg
Hello
I'm retrieving a JPEG from the server side to display it in an mx:Image. The
image raw bytes are served by a plain Java Servlet. The content type is
correct. If I call the servlet from a common browser it all works fine. The
image is 400KB big.
PROBLEM: when I call the servlet from Flex
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Partial result from HTTPService call
Hello
I'm retrieving a JPEG from the server side to display it in an mx:Image. The
image raw bytes are served by a plain Java Servlet. The content type is
correct. If I call the servlet from a common browser
Isn't using URLLoader a better way to download binary data such as
jpeg files? It has a dataFormat property that can be set to binary,
which delivers the data as a byteArray.
My understanding of httpService is that it will try to parse the
result depending on the setting of the
6 matches
Mail list logo