Splide question

Hello
based on your example from here: Splide Addon - Vaadin Add-on Directory, splide works with url ( ImageSlide slide1 = new ImageSlide(“images/slide_1.jpg”);)
My question is following, is it possible to provide image itself to the slide?
My service downloads some images, so maybe can someone explain please, how to obtain url of newly downloaded image to provide it to the slider later?

Thanks

If you check implementation of Splide you notice that it requires src of image. So it depends of how are you downloading images, where do you store them, if they are accessible within your web application context.

Please elaborate bit more but in general you might download images to your static resources folder (like theme, or other existing images) and calculate your image src based on your web app context root.

1 Like