• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Max size of ByteArray over Socket?

Enthusiast ,
Nov 13, 2014 Nov 13, 2014

Copy link to clipboard

Copied

Couldn't find anything Googling... I'm loading a video file into a ByteArray and then needing to send the array over a socket to connected clients. The ByteArray is 30MB. Not having any luck simply doing a writeBytes to the socket. Is there a max to the size of the array that can be sent?

TOPICS
ActionScript

Views

579

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 13, 2014 Nov 13, 2014

Copy link to clipboard

Copied

OK, found a little more info. Looks like I will need to first send the array size, then build the array from the received packets.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 13, 2014 Nov 13, 2014

Copy link to clipboard

Copied

OK, found a little more info. Looks like I will need to first send the array size, then build the array from the received packets.

Exactly.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 14, 2014 Nov 14, 2014

Copy link to clipboard

Copied

Finally got it working. Too bad only FLV files are supported with this method, but it'll work.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 14, 2014 Nov 14, 2014

Copy link to clipboard

Copied

Feature#3844755 - [New_Feature_Requirement] NetStream.appendBytes() for H.264 (MP4) videos

Vote for this feature request if you are interesting in it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 18, 2014 Nov 18, 2014

Copy link to clipboard

Copied

LATEST

Have this working but just tried with a 400+ MB video and within Flash I get a 1000 system out of memory error. Compiled AIR app sometimes loads the file, sometimes doesn't, and when it does it won't send. So... seems to be some limit to the size of the ByteArray after all. Is there a known limit? I couldn't find anything. 60MB files work fine... and my machine has 24GB of RAM so that shouldn't be a limiting factor.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines