mardi 29 décembre 2015

Copy an Image from Flex Application (Web) and paste it outside the application

I have a requirement that we should be able to copy an image displayed in our application, to Clipboard and paste it outside (Like on Excel).

I was trying the below code snippet.

Clipboard.generalClipboard.clear(); var dataLoaded:Boolean = Clipboard.generalClipboard.setData(ClipboardFormats.RICH_TEXT_FORMAT, event.imageSnapshotByteArray, false);

The dataLoaded object is true, however it does not paste anything when tried on Excel or MsPaint.

Do we have any way to achieve this?

Thanks.

Aucun commentaire:

Enregistrer un commentaire