Plugin and servoy media library

Questions and answers on developing, deploying and using plugins and JavaBeans

Plugin and servoy media library

Postby pulokesh » Tue Dec 21, 2004 3:59 pm

Hi,
How to communicate with the servoy media library from a plugin.
For example if I want to get a list of files in the media library , is it possible to get it from a plugin?
Also is it pissible to upload a file to the media library from a plugin?

thanks
Pulokesh
pulokesh
 
Posts: 1
Joined: Tue Dec 21, 2004 2:47 pm

Postby Jan Blok » Thu Dec 23, 2004 10:47 am

1) In a plugin you can use the same urls for retrieving images as you whould use in HTML displayed by Servoy
in Java do something like:
URL u = new URL("media:///hello.gif");//now the url object points to the image from the media lib

2) no, changing(adding an image) the repository is not possible from within a client
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 34 guests

cron