Initializes an Attribute/Variable control of Image, Audio, Video or BlobFile type from an URL.
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.
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.
Data types: Image, Audio, Video, BlobFile
Generators: Angular, Android, Apple, Java,
.NET,
.NET Framework
Procedure:
&image.FromUrl(!"http://images/myimage.jpg")
Data Provider:
{
&MyImage.FromURL(!"http://images/myimage.jpg")
MyImage = &MyImage
}
For Panel objects, you can use this method in user events since GeneXus 16 upgrade 1.
- Sanitize user inputs.
- Restrict the domains the user can use on your application.