I’m building something based on a database with a lot of products, of those product we have 2 to 3 pictures per product (front, back, extra,…) these pictures are on our server and we have links in the database with the products “//sbs/location/to/picture.png”
I was importing the folders into the media in servoy, and started testing, and I was able to do this by replacing a few things in the url in the database so it is converted and I can use the "“media:///to/picture.png”
This all worked fine, so I decided to import all other folders into media, but servoy can’t handle this, it fails on importing and gets super slow because it is just too many pictures (about 7600+ atm and this number keeps growing)
So what is the best way to include these pictures in my project? Can anyone give me a tip or a trick that helps me to make huge amounts of pictures in a local folder accesible in a servoy project?
The media folder is intended especially for static pictures that belong to the application itself, like icons for buttons or country flags, but not for huge application data like in your case.
Here is already another thread that comes close to your question: http://forum.servoy.com/viewtopic.php?f=22&t=21620
You can google that complete message with quotes around, seems to be quite common.
Looks like you tried it in webclient and the browser does not allow it.
As said I did that in smart client.
So far we know it’s about product images (multiple per product)
You mentioned having these on your server, but your request is how to get these a local files.
What kind of application are you building?
Is this a commercial product or an in house application?
Who needs to have access?
Sorry to ask so many questions, but it’s the only way to get to a correct answer on your question.
For example, you could copy the photo’s to a folder in the root-path of the tomcat server.
That way your files are directly hosted by the Servoy Application server, and you can access them as: