开发者

Flex - Can I retrieve the ByteArray from a FileReference class using Adobe Flash Player 9?

开发者 https://www.devze.com 2022-12-19 20:23 出处:网络
I am trying to retrieve the ByteArray from a file selected using the FileReference class so that I can pass this to a Web Service call that I am making to S开发者_Go百科harepoint.

I am trying to retrieve the ByteArray from a file selected using the FileReference class so that I can pass this to a Web Service call that I am making to S开发者_Go百科harepoint. Is there any way I can do this using Flash Player 9 without having to upload to a remote server first and then downloading the file to extract the ByteArray?

This is assuming you can't use Adobe Flash Player 10 and the data property from the FileReference class.

Thanks, Mauricio


In short, no. Flash Player 9 doesn't allow access to the load() function and the data property that make this possible in FP 10.

You can provide additional POST data in the data field of our URLRequest--depending on your web service this might make direct communication possible. Or it might allow you to put up a proxy on the server that makes the web service call for you (rather than posting the file and retrieving it).

0

精彩评论

暂无评论...
验证码 换一张
取 消