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

  • SEARCH
  • Home
  • 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 6875965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:25:09+00:00 2026-05-27T04:25:09+00:00

I am trying to let the user import giant images into a flash application.

  • 0

I am trying to let the user import giant images into a flash application.

Unfortunately the BitmapData object’s dimensions cannot exceed
“8,191 pixels in width or height, and the total number of pixels cannot
exceed 16,777,215 pixels” (see Reference)

Obviously with FlashPlayer11 these limitations vanish – BUT:
As I only get bytes from the FileReference, I need to convert these via Loader.loadBytes(), to get access to the image data. This doesn’t seem to work for images exceeding the old BitmapData limitations.

Does anybody have an idea, what causes this problem / how to work-around?

function onAddButtonClicked(e:MouseEvent = null):void {
    trace("Opening file");
    _frl = new FileReferenceList();
    _frl.addEventListener(Event.SELECT, onFilesSelected);
    _frl.browse([new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg;*.jpeg;*.gif;*.png")]);
}
//When user has selected the files
 function onFilesSelected(e:Event):void {
    for each (var item:FileReference in _frl.fileList) {
        item.load();
        item.addEventListener(Event.COMPLETE, onFileLoaded);
    }

}

//When files are loaded into the application
 function onFileLoaded(e:Event):void {
    trace("File Loaded!");
    var loader:Loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onBytesLoaded);
    loader.loadBytes(e.target.data);
}

//When files are finally available as Loader/Image
 function onBytesLoaded(e:Event):void {
    addChild((e.target as LoaderInfo).loader);
}
  • 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-27T04:25:09+00:00Added an answer on May 27, 2026 at 4:25 am

    In our app, with Flash Player 11.1 r102 this is working ok. I do everything the same as you except for in the onBytesLoaded handler. Try this to see if the bitmap is actually loading. I tested with a 12,000 x 12,000 pixel JPEG (144,000,000 total pixels) which loaded perfectly (besides being terribly slow to load)

    function onBytesLoaded(e:Event):void {
        var ldr:Loader = Loader(e.target.loader);
    
        var bmp:Bitmap = Bitmap(ldr.content);
        trace("Bitmap Loaded: " + bmp.width + "x" + bmp.height);
    
        var img:Image = new Image();
        img.source = bmp;
        addChild(img);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to let the user exit a flash application inside Facebook to
I'm trying to let the user import an image in my windows application, in
I'm trying to let the user choose the browser my application uses to launch
I'm trying to let users type in date and time values into an input
I'm trying to create an application that will let me execute a method specified
I am trying to let the user set the background color of my flex
I'm trying to let the user select his birthday with: <% form_for :user, :url
Ok, I'm trying to let a user choose songs from their iPod library to
I'm trying to let a user draw lines on multiple UIView canvases that are
I am trying to write my first app- a simple application where the user

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.