【问题标题】:Flex - Can I retrieve the ByteArray from a FileReference class using Adobe Flash Player 9?Flex - 我可以使用 Adob​​e Flash Player 9 从 FileReference 类中检索 ByteArray 吗?
【发布时间】:2010-02-05 17:36:52
【问题描述】:

我正在尝试从使用 FileReference 类选择的文件中检索 ByteArray,以便我可以将其传递给我正在对 Sharepoint 进行的 Web 服务调用。 有什么方法可以使用 Flash Player 9 做到这一点,而无需先上传到远程服务器然后下载文件以提取 ByteArray?

这是假设您不能使用 Adob​​e Flash Player 10 和 FileReference 类中的数据属性。

谢谢, 毛里西奥

【问题讨论】:

    标签: apache-flex flash bytearray filereference flash-10


    【解决方案1】:

    简而言之,没有。 Flash Player 9 不允许访问在 FP 10 中实现这一点的 load() 函数和 data 属性。

    您可以在我们的 URLRequest 的数据字段中提供额外的 POST 数据——根据您的网络服务,这可能使直接通信成为可能。或者,它可能允许您在服务器上设置一个代理来为您调用 Web 服务(而不是发布文件并检索它)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-04
      • 2010-12-05
      • 1970-01-01
      相关资源
      最近更新 更多