Hi Sachin,
I am suspecting that Remote object that you are using does not support byte
array may be you are using old version of remoting .

Regards,
Pankaj Munjal


On Fri, Apr 10, 2009 at 7:29 PM, Sachin Patil <[email protected]> wrote:

>
> Hi,
>
> I just went through the new enhancements for FileReferance class in
> flash player 10. With load() function we can load the ByteArray to
> Flex application.
>
> I want to use this to develop a File Upload component. I want to save/
> get images to/from server(Java) using remote object.
>
> I am able to send the file ByteArray to server. However, when i try to
> get byte[] from java to flex (using remote object) i get null. (I sent
> a byteArray and replied the same byteArray back)
>
> i am getting exception below:
> TypeError: Error #1034: Type Coercion failed: cannot convert  to
> flash.utils.ByteArray
>
> I am not sure if i can achieve this, should i use upload, download? or
> i can use load/save and data communication through remoteObject?
>
> Need your help on this.
>
> Regards,
> Sachin Patil.
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to