Skip navigation
Currently Being Moderated

Upload an image and save it as an .png file?

Jul 26, 2013 11:12 AM

How do I upload an image to Adobe Media Server?

Here's what I'm trying to do. I have a sharedObject that I want to store my thumbnail in.

sharedObject = SharedObject.getRemote("thumbnail",mync.uri,false);



Then I get the image and send it

var screenshot:BitmapData = new BitmapData(VD1.width,VD1.height,false);

var encoder:PNGEncoder = new PNGEncoder();

var pngByteArray:ByteArray = encoder.encode(screenshot);


sharedObject.send("saveThumbnail", pngByteArray);

But this code doesn't do anything. I'm probably going about it the wrong way.

The ActionScript3 reference says that you can:

Store and share data on Flash Media Server. A shared object can store data on the server for other clients to retrieve

However, I don't want other clients to retrieve it. I just want it to be stored on the server as a .png. How can I do this?

  • Currently Being Moderated
    Aug 1, 2013 10:49 AM   in reply to coderCurtis

    Hello, for this to work you’d need to first use middleware such as PHP, CF, .NET, Java, etc. This is needed since your binary data outgoing from Flash Player and it needs to undergo (de)serialization. Here is a sample done in CF -

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points