A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Java image data to Flash

  1. #1
    Junior Member
    Join Date
    Jul 2010

    Question Java image data to Flash

    Hy everyone!!!

    I am curently working on a project. I have to connect Java with Flash and send different data from Java to Flash. But now I have a really big problem

    I have to create a print screen image in Java and send the image to Flash so I can set it as the background of my Flash file. I was trying to send the data through an xmlSocket but I dont know in which format to send the data of the image so that Flash can recreate it.

    Can anyone help me?

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Austin, TX
    If you need to use an xmlSocket (as opposed to a binary socket), then you will want to Base64 encode the data, and unencode it back to a bytearray back on the Flash side. If you encode the image as JPG or PNG, it will be quite easy to put that in a Loader and recreate the image.

Posting Permissions

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

Click Here to Expand Forum to Full Width

HTML5 Development Center