Background image (local)

Hello,

I'd like to create a custom background for a project, but I'd like it to be available even if the internet connection is not provide. A possible solution would be to upload the image in the App Data of CtrlX and then copy the download link through the IDE snap, but how can I do it without it? Is the download link of the image available in the app data?

Thanks for your support!

.background_local {    
    background-image: url("https://192.168.1.1/solutions/configurations/appdata/content?path=remote-logging%2Ftest%2F");
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 50%;
}
Best reply by webiq-sk

Do not reference it by file path because the browser would always look on the client's PC for the file in the given path so this does not work.

The only way I see here would be to encode the image data as BASE64 in the code directly - you can simply upload your image here and using "show code" you will be presented with the correct CSS code to copy and paste: https://www.base64-image.de/

View original
7 replies