3 Replies Latest reply on Jan 27, 2011 12:39 PM by crni.ivan

    Flex save image from display to img component on server doesnt work?

    crni.ivan Level 1

      Hi,

       

      Flex save image from display to img component on server doesnt work,but it works on localhost,what could be the problem,please help,here is the code

       

                  [Bindable]
                  public var encodedString:String;

       

                  protected function btn_capture_image_clickHandler(event:MouseEvent):void
                  {           
                      ohSnap = ImageSnapshot.captureImage(videoDisplay);
                     
                      var bmpData:BitmapData = new BitmapData(videoDisplay.width,videoDisplay.height-25,true, 0xffffff);               
                      bmpData.draw(videoDisplay);
                     
                      var bm:Bitmap = new Bitmap(bmpData);
                      img.source = bm; // img component that I want to save image from videoDisplay
                     
                      encodedString = ImageSnapshot.encodeImageAsBase64(ohSnap);                                
                  }