I figured out that this is not possible so I managed to have a
workaround:1. Restricting user from uploading an image greater than
250kb size using this script:2. Use this script in "validate" event of
script drop down ("ImageField1" is image field
name)if(ImageField1.resolveNode("value.#image").value.length >
250000){if(xfa.host.messageBox("Image size should be less than
250KB","",0,0)==1){ImageField1.rawValue = null;}}Also, I wanted to have
image center aligned and use this in "initialize" eve...