代码之家  ›  专栏  ›  技术社区  ›  codeandcloud

如何将ActionScriptObject转换为ByteArray?

  •  1
  • codeandcloud  · 技术社区  · 15 年前

    编码语言是Java。

    我想把它转换成ByteArray。


    这是帖子的续集--> Convert Byte Array from Action Script to Image in Java and save it

    this method
    它以失败告终

    java.io.NotSerializable Exception
    

    当做,
    纳文杰

    2 回复  |  直到 8 年前
        1
  •  2
  •   Chris Mountford    15 年前

    NotSerializableException是因为ActionScriptObject未实现Serializable。

    在阅读Smartfox服务器的文档时,第8.17章提供了一个SocketLoader教程,该教程允许您将图像数据传输到服务器。 http://www.smartfoxserver.com/docs/index.htm?http://www.smartfoxserver.com/docs/docPages/tutorials_pro/17_socketFileLoader/index.htm

        2
  •  0
  •   Martín Schonaker    15 年前