PRELIMINARY INFORMATION - SUBJECT TO CHANGE
Creates an image from the specified url and returns it as byte-array.

Syntax

Smartsite SXML CopyCode image Copy Code
image.fromurl(locator location)
 image.fromurl(locator location, enum imageFormat)
 image.fromurl(locator location, integer width)
 image.fromurl(locator location, integer width, enum imageFormat)
 image.fromurl(locator location, integer width, integer height)
 image.fromurl(locator location, integer width, integer height, enum imageFormat)

Parameters

Name Data Type Description
location Locator The url.
imageFormat Enum The image format.
Enum values:
  • Bmp
    Bitmap (BMP) image format.
  • Gif
    Graphics Interchange Formt (GIF) image format.
  • Jpeg
    Joint Photographic Experts Group (JPEG) image format.
  • Png
    W3C Portable Network Graphics (PNG) image format.
  • Tiff
    Tagged Image File Format (TIFF) image format.
width Integer The width of the image.
height Integer The height if the image.

Return Value

Data Type Description
Binary An image of the specified url.

Expand image Example