Written by

Question Nezla · May 25, 2023

Using <IMAGE> sample

Hi Guys,

is there any sample I can use for Images, I'm just looking for a very simple one where I can have an upload control to upload images & image control to show them?

Thanks

Product version: Ensemble 2018.1

Comments

Ben Spead · May 25, 2023

what type of a page are you using?  csp?  zen?  a third party JS Library?

0
Nezla  May 25, 2023 to Ben Spead

Zen

0
Nezla  May 25, 2023 to Ben Spead

Thanks Ben I'm already aware of the controls that's why I mentioned them in my post, what I'm after is a sample code in how to upload the image file stream it them display it in the image control.

Thanks

0
Ben Spead  May 25, 2023 to Nezla

apologies - I don't have a fully working sample available (or time to put one together I am afraid), but maybe else could put one together for you.  You might get further if you share the code you have so far which is using these two components and explain the specific issues you are seeing (your original post wasn't clear that you already had the appropriate components in-hand but were having issues using them correctly)

0
Nezla  May 26, 2023 to Ben Spead

Thanks Ben appreciate your help

0
Nezla  May 25, 2023 to Yuri Marx

Do I have to use REST APIs? I'm saving images locally in a class (filestream) then populating it back in an image control I guess.

Thanks

0
Ben Spead  May 25, 2023 to Nezla

You don't need to use REST APIs.  One of the strengths of Zen was that it allowed you to directly access data within the DB for easy display

0
Nezla  May 25, 2023 to Ben Spead

I know that but your samples doesn't show me how to do that which is I'm after :)

Thanks anyway I appreciate your help 

0
Nezla · May 25, 2023

So just something like the attached, Upload on the top and image showing below it once uploaded

Thanks

0