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

Sending large amounts of XML data

New Here ,
Apr 19, 2008 Apr 19, 2008
I'm attempting to send a large amount of XML data to a PHP script and I'm having a bit of trouble. When I trace() the data that's being sent, I see all of the data, but when I check to see what the PHP script received, it shows only the first 65535 characters. Everything after that is missing. I'm following the advice of Joey Lott from his ActionScript 3.0 Cookbook, and I'm using $GLOBALS['HTTP_RAW_POST_DATA'] in the PHP script to retrieve the data sent to it.

Has anyone else run into this issue? What's the best workaround?
TOPICS
ActionScript
401
Translate
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
Community Expert ,
Apr 19, 2008 Apr 19, 2008
as2's loadvars had a data limit of 64k and that's the limit you're hitting.

i haven't seen anyone post a message about the urlloader having the same limit, but it wouldn't be a shock.
Translate
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
New Here ,
Apr 20, 2008 Apr 20, 2008
Thanks, kglad. It's good to confirm the source of the problem. Do you have any ideas on how to get around that limit? Is there maybe a quick way to divide it up into 64kbytes and send it in several chunks or something? Or maybe use another function altogether?
Translate
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
Community Expert ,
Apr 20, 2008 Apr 20, 2008
i don't know any universal way to divide your data into allow chunks, but it shouldn't be too hard to devise something based on what you're now doing and then use a (urlloader load - complete event) loop to send those chunks.
Translate
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
New Here ,
Apr 20, 2008 Apr 20, 2008
Thanks again, kglad. I'll see what I can come up with.
Translate
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
Community Expert ,
Apr 20, 2008 Apr 20, 2008
LATEST
you're welcome.
Translate
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