且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将对象从 flex 发送到 java servlet

更新时间:2023-12-04 14:19:16

如果您坚持以这种方式发送参数,您***将字节数组编码为字符串表示形式.Base64 例如.在 java 端使用 commons-codec 对其进行解码.

If you insist on sending the params this way, you'd better encode the byte array in a string representation. Base64 for example. On the java side used commons-codec to decode it.

否则,请参阅这篇文章.它有点旧,但仍然适用.另请参见此处

Otherwise, see this article. It's a bit old, but still applies. Also see here