# Copy bitmap data to the clipboard

**URL:** <https://forums.creativeclouddeveloper.com/t/copy-bitmap-data-to-the-clipboard/764>\
**Category:** UXP Plugin API\
**Tags:** bitmapdata, api-feedback\
**Created:** [April 15, 2019, 11:19pm UTC](https://forums.creativeclouddeveloper.com/t/copy-bitmap-data-to-the-clipboard/764 "2019-04-15T23:19:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [April 15, 2019, 11:19pm UTC](https://forums.creativeclouddeveloper.com/t/copy-bitmap-data-to-the-clipboard/764/1 "2019-04-15T23:19:06Z")

</div>

Support copying Bitmap Data to the clipboard.

Currently we have support for:

```
clipboard.copyText("Hello world");

```

Request is for:

```
var bitmapData = selection.items[0].getBitmapData();
clipboard.copyBitmapData(bitmapData);

```

**Use Case**  
Greg is a member of the graphic design community DDDrool. He wants to be able to copy parts of his designs to share with his community but he wants to add his watermark to it.

So he writes a plugin that adds his water mark, and then copies the design to the clipboard as bitmap data. He then logs into the community site and pastes the image to web submission form.

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [April 19, 2019, 4:17pm UTC](https://forums.creativeclouddeveloper.com/t/copy-bitmap-data-to-the-clipboard/764/2 "2019-04-19T16:17:38Z")

</div>

Can’t you convert bitmap to string and the other way around?

---

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [April 19, 2019, 6:48pm UTC](https://forums.creativeclouddeveloper.com/t/copy-bitmap-data-to-the-clipboard/764/3 "2019-04-19T18:48:50Z")

</div>

Copy a base 64 image data string to the clipboard? That might work sometimes. There are numerous forms on the web that accept bitmap data pasted from the clipboard.

For example, gmail, imgur, discourse and more accept bitmap data from the clipboard.

FYI Chromium added support for this yesterday,

> “Final CL for shipping new Async Clipboard API w/image support! :D”

[https://bugs.chromium.org/p/chromium/issues/detail?id=150835#c104](https://bugs.chromium.org/p/chromium/issues/detail?id=150835#c104)

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [April 19, 2019, 10:02pm UTC](https://forums.creativeclouddeveloper.com/t/copy-bitmap-data-to-the-clipboard/764/4 "2019-04-19T22:02:45Z")

</div>

@Velara points taken. We will discuss this internally
