Paste BitmapData from Clipboard in browser

Is is possible to paste BitmapData from the clipboard when using the browser? When I look at the  reference to the general clipboard it says the following properties "alive", "canReadContents" and "canWriteContents" are true. The formats array shows one entry for air:bitmap but when I try to access the data it returns null.
Code: 
           var clipboard:Clipboard = Clipboard.generalClipboard;           
           trace("Formats: " + clipboard.formats.join(","));
           var value:* = clipboard.getData(ClipboardFormats.BITMAP_FORMAT, ClipboardTransferMode.CLONE_ONLY);

Hi,
CL_GUI_FRONTEND_SERVICES will not work for the WDA , And  if u check WDR_SELECT_OPTIONS and View EXTENDED_OPTIONS, table toolbar has the buttons Import from Clipboard and others which are bounded with the ENABLED context attribute , and respectively in actions are nothing provided by the SAP.
Please check the Note 947622 and check ur BASIS Version for as per the note
Regards
Vikrant

Similar Messages

  • ActionScript 3 paste image from clipboard

    Is it possible to paste image from clipboard using ActionScript 3 and Flash Player 11?
    Need web solution only, not AIR.
    Use case:
    - User opens image some in some native image editor.
    - Selects part of image and clicks Ctrl+C (Command+C on Mac). Now part of image is in clipboard.
    - User open web application that is running in Flash Player
    - User inputs image by clicking Ctrl+V (Command+V on Mac) or using context Menu->Paste.
    I browsed the docs for Clipboard at: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/Clipboard .html
    The only format that seems reasonable would be Clipboard.getData(BITMAP_FORMAT) on paste events. This seems to be supported by AIR only.
    Are there any ways to implement the given use case with Flash Player?
    Thanks!
    P.S.: There is some support of paste events in HTML in Chrome and Firefox, but Internet Explorer 10 and Apple Saffari 6 seems still have issues with pure-HTML approach.
    Cheers,
    Ignat.

    This seems to be supported by AIR only.
    What gives you the impression?
    AIR-only functions are marked with a fancy AIR logo
    (like the first one in this list: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/images/sprite-index.png )
    and getData doesn`t have it, so it should work without problems in the "normal" Flash Player if you follow the recepy:
    Note for Flash Player applications: In Flash Player 10, a paste operation from the clipboard first requires a user event (such as a keyboard shortcut for the Paste command or a mouse click on the Paste command in a context menu). Clipboard.getData() will return the contents of the clipboard only if the InteractiveObject has received and is acting on a paste event. Calling Clipboard.getData() under any other circumstances will be unsuccessful.

  • Paste image from clipboard works in Chrome but not in Firefox

    Hi there,
    I would like to know a bit more about the technical reasons why image pasting from clipboard works on Chrome but not Firefox.
    Steps to reproduce:
    1. Open the text editor on github.com, e.g. by commenting on an issue
    2. Copy an image to clipboard
    3. Put the mouse cursor into the text editor area
    4. Use CTRL+V to paste the image into the text editor
    On Chrome, the image is pasted and automatically uploaded on Github. On Firefox nothing happens.
    Can someone please shed light on this lacking feature?
    I would so much love to see support for this on Firefox as it is a very convenient functionality.
    Thank you!

    The best is to try it yourself I guess.
    Go to Github and try pasting an image into the compose editor.
    The editor definitely supports image pastings. They work directly in Chrome(ium).
    Thus I am wondering why Firefox does not support direct pasting from clipboard into the editor.
    See the attached screenshot regarding the editor I am talking about.

  • Copy/Paste Image from Clipboard - still no support for transparency?

    I just tried to load an Image from the Clipboard by using DataFlavor.imageFlavor. Everything works well if the clipboard-image doesn´t use any transparency. When loading an image with alpha-channel (png or gif), the transparency occurs as black pixels. Here is the code snippet:
    Clipboard clip = Toolkit.getDefaultToolkit().getSystemClipboard();;
    Transferable t = clip.getContents(null);
    BufferedImage img = (BufferedImage) t.getTransferData(DataFlavor.imageFlavor);img.getType allways returns TYPE_INT_RGB, even if the image contains alpha-data.
    According to this Bug-Report
    [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4720930]
    this should have bin fixed in 1.4.2, if i´m not wrong?
    Can anyone confirm this problem, and is there any workaround? The one described in the bug-report doesn´t work for me, since clipboard-images in my case don´t match DataFlavor.javaFileListFlavor.

    The best is to try it yourself I guess.
    Go to Github and try pasting an image into the compose editor.
    The editor definitely supports image pastings. They work directly in Chrome(ium).
    Thus I am wondering why Firefox does not support direct pasting from clipboard into the editor.
    See the attached screenshot regarding the editor I am talking about.

  • Cannot paste artwork from clipboard into itunes

    I can no longer post artwork from the clipboard to my ipod classic after I installed ituens 10.4.80 -1. Any suggestions? It was the update before 80. I installed 80 hoping it would fix. When I try to paste it is just black.

    Ed2345,
    Thanks for the response especiall so quickly. Appreciate it!
    I have already tried drop-n-drag with no success. Saving artwork works fine however it is time consuming. I had a problem with the artwork file and have to redo all that cannot be found online - I have many. Hopefully Apple will fix in a later release. 
    Kind regards,
    Mike

  • Pasting Text from Clipboard

    I know there is a simple answer to this, but I cannot find
    it. The code I attached to this post yields a security error of the
    following nature:
    SecurityError: Error #2179: The Clipboard.generalClipboard
    object may only be read while processing a flash.events.Event.PASTE
    event.
    Thoughts anyone?

    Makes a whole lot of sense, especially from the security
    angle. I'm going to log a request for this to be officially
    evaluated. It should be expected, and certainly feasible without
    violating the security model, that when dealing with a text API
    that we should be able to work with clipboard contents. Perhaps
    consider restrictions that only allow text data into the component
    and rejecting binary data?
    Expecting users to rely on keyboard shortcuts or context
    menus with my user base is kind of a mistake. It's simple enough
    for engineers but not so much for teachers. Yes, an oxymoron at its
    finest.

  • Paste image from clipboard into image item in Forms10

    Hi all!
    procedure PASTE_REGION work in Forms6 for image item, but i can't paste in Forms10.
    This function is no longer available?
    Valeriy

    Scripting or coding doesn't work with extending the Silverlight webpart. The source code of the Silverlight webpart isn't available by Microsoft. So you can't modify the code of the Silverlight webpart.
    Also it's not supported by Microsoft to modify the Silverlight webpart and it maybe causes trouble with upcoming updates on the webpart as well.
    "Please don't shoot the messenger ;-)"
    Andreas Baumgarten | H&D International Group

  • Forms 11gR2 - paste from clipboard into image item

    Hi, how can I paste image from clipboard straight into an Image item on Form?
    If it can't be done via standard Forms functionality, is there any workaround - I mean can Java Bean do it, or maybe drag and drop via Beans Area?
    I know it's quite odd functionality, but any hint is much appreciated.
    Thanks in advance. Jack

    Hello,
    <p>I think that it is not possible. The only ways to populate an Image Item is to use the Read_Image_File() or to query from the database.
    You can use a Java Bean that allows to drag and drop an image file.</p>
    Francois

  • WD: Paste multiple lines (from clipboard) in a table ?

    Hi is it possible ?
    I would like to paste one or more lines to a table from the clipboard.... new lines should be added automatically to the wd table.
    many thanks for your help !

    Yes, but SE16N is SAPGUI based. From the SAPGUI you are running a true desktop application and can of course do mass cut and paste.  From Web Dynpro, you are generally running in the browser and therefore are sandboxed. Cut and paste of this type is simply not feasible in the way the browser and the HTML work for the table.
    Such data entry will be possible in the future for Web Dynpros running in the NetWeaver Business Client with the Smart Client rendering turned on.  In that case you are no longer running your WDA in a browser, but truely as a desktop application.

  • Pasting Image  from Mac clipboard to Java Based Application.

    Hi,
    I am working on "iMac 10.2.7". I need to paste an image from other
    application using "Java version 1.4.1". I am trying to retrieve the image
    from the system clipboard after it is copied from some other application. I
    am pasting the code which illustrates my requirement. It works fine on
    windows. But does not work on Mac.
    On Mac it does not cross the supported data flavor check
    (clipData.isDataFlavorSupported(DataFlavor.imageFlavor) where clipData is
    the Transferable object). It seems Mac has some InputStream instead of Image
    in the clipboard when some image is copied. I tried to read that InputStream
    using ImageIO.read(java.io.InputStream). But that is also returning null.
    Thanks
    Santanu
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import java.awt.datatransfer.*;
    import javax.swing.*;
    public class ClipboardTest extends JFrame implements KeyListener{
         JLabel label;
         static Toolkit kit = null;
         static Clipboard clipboard = null;
         public static void main (String arg[]) {
              kit = Toolkit.getDefaultToolkit();
              clipboard = kit.getSystemClipboard();
              JLabel l = new JLabel();
              JButton button = new JButton("Paste from clipboard");
              final ClipboardTest ct = new ClipboardTest(l);
              ct.getContentPane().add(l,BorderLayout.CENTER);
              ct.getContentPane().add(button,BorderLayout.SOUTH);
              ct.setVisible(true);
         button.addActionListener(
              new ActionListener() {
                   public void actionPerformed(ActionEvent ae) {
                        pasteImage(ct.label);
         button.addKeyListener(ct);
         public ClipboardTest (JLabel l) {
              label = l;
         public static void pasteImage(JComponent jComp) {
                   jComp.setTransferHandler(new ImageSelection());
                   TransferHandler handler = jComp.getTransferHandler();
                   Transferable clipData = clipboard.getContents(null);
              if (clipData != null) {
              if (clipData.isDataFlavorSupported(DataFlavor.imageFlavor)) {
                   handler.importData(jComp, clipData);
         //Key listener methods
         public void keyPressed(KeyEvent e) {
         int c = e.getKeyCode();
         if (c == 86) {
              if (e.isControlDown()) {
                   pasteImage(label);
         public void keyReleased(KeyEvent e) {}
         public void keyTyped(KeyEvent e) {}
    class ImageSelection extends TransferHandler implements Transferable {
         /* DataFlavor instance that holds imageflavor value*/
         private static final DataFlavor flavors[] = {DataFlavor.imageFlavor};
         private Image image;
         public boolean importData(JComponent comp, Transferable transferable) {
         try {
         if (transferable.isDataFlavorSupported(flavors[0])) {
         image = (Image)transferable.getTransferData(flavors[0]);
                   if (comp instanceof JLabel) {
                   ((JLabel)comp).setIcon(new ImageIcon(image));
                   comp.repaint();
                   return true;
         } catch (Exception ignored) {
              ignored.printStackTrace();
         return false;
         // Transferable Interface methods
         public Object getTransferData(DataFlavor flavor) {
         if (isDataFlavorSupported(flavor)) {
         return image;
         return null;
         public DataFlavor[] getTransferDataFlavors() {
         return flavors;
         public boolean isDataFlavorSupported(DataFlavor flavor) {
         return flavor.equals(flavors[0]);

    Here are two commercial options:
    JTwain + JSane
    http://asprise.com/product/jtwain/index.php
    Morena
    http://www.gnome.sk/Twain/jtp.html
    Haven't tested them, so don't no how good they are, nor how easy they are to use on multiple platforms.

  • Very slow pasting data from the Clipboard into a Sharepoint 365 list by using the Quick Edit view

    <p>In sharepoint 2010 it was very fast to paste data from the Clipboard by using the Data Sheet view. Why is it so slow in Sharepoint 365 when using the Quick Edit View? is there a workaround?</p><p>also in Sharepoint 365 if you try to
    paste a large number of records (2,000) it will freeze.</p>

    I'm interest about same thing. Clipboard is often only way to migrate lists between sharepoint versions and now it is almost unpossible to use.

  • I am unable to copy and paste text from mozilla, clipboard error

    Hi-
    It seems I am suddenly unable to copy and paste anything from mozilla into other text editors (word, wordpad, notepad).
    I am unable to use ctrl c or v, when trying to do Edit-copy or paste it seems as though nothing is "recognized" by Mozilla.
    I'm using a netbook running Win7.
    In an effort to fix this problem I restarted firefox, started in safe mode, disabled all plugins, returned to default settings, and have done basically everything except for uninstalling and reinstalling.
    Are there suggestions? I looked in older posts, but I also do not have the pushow.dll(or something like it) or the new.net(or comparable) malware so I cant get rid of that either.
    Any help is greatly appreciated!
    Kyra

    Firefox button > Web Developer > Error Console or {Ctrl + Shft + J} from the keyboard
    Do you have any messages relating specifically to that error? <br />
    You can right-click a message and use Copy to get that message into the clipboard - and then Paste it here. (If that works.)
    Beyond that, try a new Profile (don't Delete your current Profile). <br />
    http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows

  • Copy from clipboard and paste in Web Dynpro table

    Hi
    I have a client requirement where the client wants to copy the table from some already existing application and paste the data  directly in web dynpro java table.  It is similiar to copy the data from clipboard and paste it directly in web dynpro table.
    I would like to know is it feasible. If yes, please provide some links or guide me on achieving the same.
    Thanks
    Harsimran

    Hi
    I think one way you can do it,
      1 . try to export the table dato to excel sheet.(copy and paste to excel)
       2. Importing the excel data to WD table.
      for more details about reading excel data, there is many blog on sdn just check it.
    Hope will help you
    Thanks

  • Preventing Copy & Paste from Within A Browser

    I created a pdf from a WORD document.  I then opened the PDF and went to ADVANCED>>SECURITY.  I applied sucurity principles that would not allow copy and paste as well as printing and I locked it with a password (the document can be opened without a password).
    If I try to copy and paste text with the PDF opened in Windows on my desktop, I cannot copy and paste text.  However when viewing the same document within a browser (Firefox), I am easily able to  copy and paste text and print.  Is there a way to prevent copy and printing from within a browser?
    Thanks!

    PDF viewers that are compliant to the standard will not allow this. The problem is some PDF viewers are less than compliant, such as some that are built-in to browsers. It looks like Firefox's does not respect security settings.

  • CS6 doesn't paste latest text from clipboard but older one

    OSX 10.8.2, InDesign CS6
    I cannot paste text from word mac 2011 in Indesign CS6. When I try to paste the text in InDesign the text from before the current copying appears. (although the right text is in the clipboard). The problem is that InDesign shuts down after trying this 3-4 times.
    Does anyone know this problem and has a solution?

    No, its correct but not the text from the last copying but the one before.
    This is how it goes:
    1. I copy text from word
    2. Pasting in InDesign without any problems
    3. Copying another text from word
    4. Pasting in InDesign show the text from step 2 and not the copied text from step 3
    5. delete the pasted text
    6. Pasting again shows the correct text from step 3
    after repeating this 3-4 time InDesign quits
    I hope my explanation is understanable
    best regards

Maybe you are looking for