Convert Flex ByteArray in Java byte[]

南楼画角 提交于 2019-12-10 19:19:50

问题


I'm trying to upload file on server which send from Flex GUI with rtmp protocol. I asked yesterday how to send file's data on server: Upload file on server through rtmps+java

But now i have problem with how to convert org.red5.io.amf3.ByteArray in something that i can correctly save in file.

Cam some one help me?


回答1:


To get the array:

byte[] bytes = new byte[byteArray.length()];
byteArray.readBytes(bytes);


来源:https://stackoverflow.com/questions/23126842/convert-flex-bytearray-in-java-byte

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!