FromURL method

Official Content
This documentation is valid for:

Initializes an Attribute/Variable control of Image, Audio, Video or BlobFile type from an URL.

Syntax

AttributeVariableControlName.FromURL(<CharacterExpression>)

Where: 

AttributeVariableControlName
   
Is the name of an Attribute/Variable control that shows an Image, Audio, Video, or BlobFile data type.

<CharacterExpression>
     Is a string expression that must evaluate a valid URL. This format is equivalent to the LoadBitmap function.

Description

When used in a Transaction's attribute, GeneXus will automatically download the image or audio from the URL specified and store it in the database table. Any reference to the URL is saved. If you only need to store in the database a reference to an image URL, audio URL, video URL, or blob file URI, use the ImageURI Property,, FileURI property or VideoUri Property instead.

Scope

Data types: ImageAudioVideoBlobFile
Generators: Angular, Android, Apple, Java, .NET .NET Framework

Samples

Procedure:

&image.FromUrl(!"http://images/myimage.jpg")

Data Provider:

{
   &MyImage.FromURL(!"http://images/myimage.jpg")
   MyImage = &MyImage
}

Availabilty

For Panel objects, you can use this method in user events since GeneXus 16 upgrade 1.