Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Copy clipboard into a blob
Copy clipboard into a blob [message #445207] Thu, 28 October 2004 12:40 Go to next message
Henrik Skovgaard is currently offline Henrik SkovgaardFriend
Messages: 84
Registered: July 2009
Member
Hi

I want to write a program that can take the clipboard (a file or an image)
and save it as a blob when I paste it in a widget of some sort.

I saw there was a clipboard example on help.eclipse.org but I do not have
the plugin they refer to, so I can't run it unfortunately.

Have any of you got some hints for me? Which kind of widget fx supports
pasting of an image/file (without showing it - only save to mySql as blob)
etc :)

/Henrik
Re: Copy clipboard into a blob [message #445217 is a reply to message #445207] Thu, 28 October 2004 14:01 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
The is no SWT subclass of Transfer that supports images. You need to define
one. Note that the native format for images depends on the type of image
and varies from platform to platform.

See:
http://www.eclipse.org/articles/Article-SWT-DND/DND-in-SWT.h tml
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet79.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup


"Henrik Skovgaard" <hsk@reklamedata.dk.no.spam> wrote in message
news:clqpc3$nql$1@eclipse.org...
> Hi
>
> I want to write a program that can take the clipboard (a file or an image)
> and save it as a blob when I paste it in a widget of some sort.
>
> I saw there was a clipboard example on help.eclipse.org but I do not have
> the plugin they refer to, so I can't run it unfortunately.
>
> Have any of you got some hints for me? Which kind of widget fx supports
> pasting of an image/file (without showing it - only save to mySql as blob)
> etc :)
>
> /Henrik
>
Previous Topic:How to invoke clipboard actions in a portable way
Next Topic:Loading Images into a List
Goto Forum:
  


Current Time: Fri Apr 19 13:15:01 GMT 2024

Powered by FUDForum. Page generated in 0.01825 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top