Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
How to display an image in a web app
Hi RapidMiners,
this is kind of a noob question, but I haven't been able to solve it. I have images, both as jpg files and URL, that I want to display in a web app. I hava tried the following without success:
* Upload the jpg file to the server with the Store operator, then use the Image component.
* Create an External resource component. Embed as image and copy paste the URL.
While writing the post, I've remembered that I could display it through HTML, but given the fact that we have Image and External resources components, I would like to be able to use them.
Your help is kindly appreciated!
Tagged:
1
Answers
Hi @SGolbert,
both solutions work for me.
For the Image component make sure that you have stored the image with the correct MIME type - then you should be able to select the file and it should work!
The best way is to use the Operator Write File with the resource type repository blob entry. There you can enter the correct MIME type manually. For already stored objects you may instead change the MIME type manually in the Web Interface of RapidMiner Server.
For the External resource component you should embed the image as IFRAME and enter the full Image link there.
Happy Mining,
Edin
I'm trying to follow along with the lesson at rapidminer academy pertaining web apps. You may find the link at: "
In there the instructor used the stored the image in the following location: "<img src='/internal/rest/resources/public/images/face-worried.svg'>". Do you know where I can find that location in rapidminer server?
Thanks
Thank you in advance