I'm trying to display an image from a media picker. The code below is attempting to just display the image url as a string, but it returns the JSON for the media object (I think). How do I get the image url from this string using razor? And also how do I access any crops on the media object?
How to display an image from a media picker?
I'm trying to display an image from a media picker. The code below is attempting to just display the image url as a string, but it returns the JSON for the media object (I think). How do I get the image url from this string using razor? And also how do I access any crops on the media object?
Am I doing this the wrong way? Any help would be greatly appreciated.
Hi jonok try this:
/Michaël
Hi Michaël, when I try that I get this error:
Can you show me the full code of where you are calling this?
/Michaël
It's from within the PDF Creator example razor file. I've modified the '[PDF] Razor Example' to display a media picker image. This is the razor code:
is working on a reply...