Extract Image from ByteArray

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Extract Image from ByteArray

    Hi,
    If i have a byteArray of an image, how do i make a displayable Image

    I can load it using a Loader.loadBytes but then i cant display that anywhere, how do i display a Loader object in flex?
    greenhippo Guest

  2. Similar Questions and Discussions

    1. Java ByteArray TIFF Image
      We have a image server that we built for Flash 5/Generator to load tiff images into flash and updated it to work with MX when loading JPGs was...
    2. extract iso image
      hi, I am not sure if I am doing the right thing. I want to extract an downloaded isoimage by first mounting it. I tried: mount -t iso9660 -o loop...
    3. Extract Image to Tiff
      This question is concerning the Adobe Acrobat software for windows. I am trying to extract a pdf to a tiff. The pdf is only one page, however, when...
    4. Extract the first page of a PDF as an image?
      I'm trying to find some software (free, shareware, or commercial) that extract the first page of a PDF (whether it's an image or not) and render it...
    5. Extract Image
      Is there an application that will extract an embedded image for OS X. There used to be one in OS 9.
  3. #2

    Default Re: Extract Image from ByteArray

    Worked it out, for all those who come across this and are interseted


    var loader:Loader = new Loader();
    loader.addEventListener(Event.COMPLETE, completeHandler);
    loader.loadBytes(byteArray);

    public function completeHandler(e:Event){
    bmp:Bitmap = Bitmap(loader.content);
    someUIComponent.addChild(bmp);
    }

    greenhippo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139