Hi again,
Found a workaround for this problem (Source:
http://blog.flexexamples.com/2007/12/07/converting-an-imagesnapshot-object-into-a-base-64-encoded-string-in-flex-3/)
Instead of encoding the ImageSnapshot to a ByteArray, it's easy to
encode the data to a Base-64 string ( ImageSnapshot.
encodeImageAsBase64(snapshot) ).
In the method of the amfphp service file handling the export, decode
the data with the base64_decode function.
This seems to solve my problem (touch wood).
_rico
On 03.03.2009, at 19:09, Fotis Chatzinikos wrote:
I never use amf to upload images. I always post to a normal
upload.php page.
If you do not find a solution to your amf problem try this...
Have in mind that you will need to send the server session as well
if you follow my advice,
as the flash player has a different session id in some browsers
(this is needed if your upload page is available only to logged in
users)
On Tue, Mar 3, 2009 at 8:01 PM, Rico Leuthold <[email protected]>
wrote:
Hi,
I have a really annoying, randomly occuring, problem with amfphp when
I want to export an image file.
The application is sending a byteArray (png encoded) to php over
amfphp, where the png file is created and the image file is served for
download. Sometimes that works perfect, but the suddenly I get the
error Message: "Client.Error.DeliveryInDoubt" - "Channel
disconnected".
When I debug the data flow with Charles I get:
The class {Amf3Broker} could not be found under the class path {[...]/
amfphp/services/amfphp/Amf3Broker.php
I searched through the web to find a solution to this and tried out
every thing I could find.
A huge problem is, that this happens just from time to time. Usually I
can just reload my app to get rid of th problem.
Did somebody have the same problem and found a solution to this, or
can you give me hint on how to go on?
Thank's
rico
--
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[email protected],