com.businessobjects.rebean.wi
Interface Image

All Superinterfaces:
BinaryView

public interface Image
extends BinaryView

The Image interface provides access to images information

Note: To activate customized control of document images, the variable MANAGE_IMAGES must be set to 1 in the webi.properties file.

MANAGE_IMAGES=1

Example: Writing an images binary contents to an output stream.

 
        byte[] binImage = null;
String strImageName = "imgName"; ServletOutputStream oStream = response.getOutputStream();
DocumentInstance myDoc = mySession.getDocumentFromStorageToken(strStorageToken);
Image imageObject = myDoc.getImage(strImageName);
binImage = imageObject.getBinaryContent();
oStream.write(binImage);

This example can be placed in a callback file to be set by ImageOption.

See Also:
DocumentInstance.getImage(java.lang.String), ImageOption

Method Summary
 byte[] getBinaryContent()
          Returns the binary image content.
 java.lang.String getName()
          Returns the image name generated by the report engine.
 
Methods inherited from interface com.businessobjects.rebean.wi.BinaryView
getContent, getContent, getContentLength, getContentType
 

Method Detail

getName

java.lang.String getName()
Returns the image name generated by the report engine.

Returns:
the image name

getBinaryContent

byte[] getBinaryContent()
Returns the binary image content.

Returns:
The binary contents of the image.