0 Replies Latest reply on Apr 6, 2011 8:59 PM by raj_cap

    how to get image from server

    raj_cap

      Hi All,

       

      My goal is to

      1 - send image from a flash swf to coldfusion server

      2 - store it there and return through httpservice

      3 - get in flex app and display the image.

       

      part 1 and 2 are done in following way -

      1 - something like

      bmpData.draw(slideObj,mat);   
          var pngEncoder:PNGEncoder = new PNGEncoder();
                   var imgByteData:ByteArray = PNGEncoder.encode(bmpData);//flash as code

       

      2 - newElement.XmlCdata = BinaryEncode(details[1].getSNAPSHOT(),"hex"); //coldfusion code

      this data is sent through httpservice

       

      3 - how to get back this data and display in flex. Could find the examples where it can be done in coldfusion but how can a client like flex do it. I guess the rough steps would be to decode(is it possible in flex without any libraries or I have to depend on some 3rd party code) the data and create bitmap out of that but no luck so far.

       

      Thanks.

      Rajeev