Glossary Item Box

HowTo: How to initialize BinaryImage using stream

Overview: Client-Side events

Deployment: Security settings

Client-side API: BinaryImage client side API

See Also AspLib component library Send comments on this topic.

Binary Image

This component enables easy and simple showing and uploading images without creating additional forms, files or handlers. The control works with images as Textbox works with text.

 

Features:

 

BinaryImage view sample:

BinaryImage

 

When user clicks on the BinaryImage with uploaded image appears window with full image view: 

 

Image initialization on a form is carried out by the onShowImage event. If you want to switch on upload image functionality, set IsUploadingEnabled="true". When an image is uploaded onUploadImage event is called and the image is passed to the event handler.

 
If an image is not defined in the onShowImage event default image, defined in the EmptyImageSrc property, may be displayed. In case of Width and Height properties being defined the image can be automatically truncated.
 
If you want to show only image icon (without full size image), set ShowZoomedImage=false.
 

Data binding of the key (which defines what image is displayed) is supported, as well as binding to the image binary through DataImageField property.

HowTo: How to initialize BinaryImage using stream

Overview: Client-Side events

Deployment: Security settings

Client-side API: BinaryImage client side API

 

 


© 2002-2007 Astron Digital. All Rights Reserved.