URL for StreamResource

Hello,

I want to use a JavaScript library together with vaadin. For this lib I need the URL of an image that I want to display. I have the image as a StreamResource. So my question is how can I get the URL for a StreamResource? It must be somehow possible since for example if you dipsplay it using Embedded the src-attribute has an URL value.

Thanks in advance for the help!

Use the getResourceUrl() method of your Connector.