The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
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