Referencing a shared folder on server

Hi all,

Is there a way I can specify a server folder location for uploading and displaying images remotely, using the current tools (ie no external plugins)? This is to prevent having these images stored directly in the database and bloating it unnecessarily. It is also in the context of a remotely-hosted solution… :?:

TIA,

Ben

Something like FTP or drivemapping?

Hi Ben,

Regarding viewing images [in Servoy] that live on a remote server/folder, I could send you a code snippet that shows you how to access images thru http/ftp etc. without any plugins or other third-party code. Would that be helpful?

BTW you can use the HTTP plugins getMediaData fx to get images using the http protocol.

Regarding uploading, you have options there too sans plugins. What protocols would you want to use? FTP, SCP etc.?

Hopefully I understood your post :?: :?:

I just read my post, not that clear…

What I mean is if you store a server path in a global (e.g. ftp://myserver.com/images or http://myserver.com/images), then in the DB you can store the names of images as a string. You can then access any image on the server by combining the server name and the image name for any given record. The resulting image can be displayed in Servoy anyway you want e.g. in a media field.

Normally you would need a plugin for fetching over FTP, but I have some code for that that does not use plugins. If you use HTTP to fetch the remote images Servoy has some built in stuff for that already.