Question T2203
Visible to All Users

Get image picker in folder

created 6 years ago

how can i get an image in a folder (./ src / image.png for example) instead of recovering that with a link ImagePicker

Answers approved by surveyjs Support

created 6 years ago

Hello,

The survey is shown in a web browser, that's why it needs to get an URL of the image or a base64 encoded image binary.
If your web-service serves images via relative links, you can use relative address but formed properly.

In case of my misunderstanding please describe your case in greater details.

Thanks, Serge
SurveyJS Team

    Comments (2)

      I want to use images that are in my folder (that's why I have to specify the path to my file so that it recovers the image) instead of taking an image in a site

        Hello,

        According to the https://www.w3schools.com/html/html_filepaths.asp specification,

        A file path describes the location of a file in a web site's folder structure.

        So you can use file paths for files resided on your web server, not in local folder on your computer.
        Answering your initial question - you need to move images on the web site to use relative paths in img src tag.
        Local files are not supported.

        Thanks, Serge
        SurveyJS Team