Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6782119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:42:13+00:00 2026-05-26T16:42:13+00:00

I have a netConnection connected to a Flash Media Server. I am trying to

  • 0

I have a netConnection connected to a Flash Media Server. I am trying to use the new appendBytes function from Flash Player 10.1 to stream a local FLV file to FMS. I’m having issues however… Documentation I get online

function playFile(data:ByteArray):void
{
// data is bytearray data from an already loaded FileReference object
    netStream.play(null);
    netStream.appendBytesAction(NetStreamAppendBytesAction.RESET_BEGIN);
    netStream.appendBytes(data);
}

However, I’m getting an error with the appendBytesAction and appendBytes. The error is: Error #2004: One of the parameters is invalid….

TypeError: Error #2004: One of the parameters is invalid.

Any ideas?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:42:14+00:00Added an answer on May 26, 2026 at 4:42 pm

    You can’t use appendBytes successfully when your stream’s NetConnection is connected to anything else than “null”. From the documentation of appendBytes method at http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.html#appendBytes%28%29:

    Passes a ByteArray into a NetStream for playout. Call this method on a NetStream in “Data Generation Mode”. To put a NetStream into Data Generation Mode, call NetStream.play(null) on a NetStream created on a NetConnection connected to null. Calling appendBytes() on a NetStream that isn’t in Data Generation Mode is an error and raises an exception.

    This almost certainly implies that what Adobe calls “Data Generation Mode” will not be available on a connection object connected to say, a Flash Media Server instance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a working Flash player using Cloudfront, AS3, NetConnection & NetStream. Works
I have created a FLV video player using the AS3 flash.media.Video object (not the
I have Adobe Media Server 4, and I am using Flash Professional CS5.5 to
Here's my problem: I have a NetConnection object connected to a server. On top
i have a server at the moment which makes a new thread for every
In Flash, AS3, I am using NetConnection to connect to a RTMP server, then
Is it possible to use the flash.net.NetConnection object to connect to my Flash remoting
I'm using eclipse, trying to connect to a sql server db. I have the
I have the following code var playingStream:NetStream; function playBytes(bytes:ByteArray): void { var connect_nc:NetConnection =
I have a problem with making connection to local SQL server 2008 R2, here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.