You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OIC- Javascript function to Get Image dimension

Summary:

Hi

I have used the attached js function in OIC, but it throws an error. The same is working in the HTML page.

Is there a way like in Java to import the dependencies here in the OIC javascript library? Here I use the vanilla function Image, but that is also getting errors.

cause: {ReferenceError: "Image" is not defined. (js/GETIMAGEDIMENSIONS_01.00.0000/getImageDimensions.js#4)}

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):

OIC

24.1.2

Code Snippet (add any code snippets that support your topic, if applicable):

function getImageDimensions(imageBase64Value,imageType) {

  const img = new Image();

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!