com.businessobjects.dsws.reportengine
Class Image

java.lang.Object
  extended bycom.businessobjects.dsws.reportengine.Image
All Implemented Interfaces:
java.io.Serializable

public class Image
extends java.lang.Object
implements java.io.Serializable

The Image class is used to return an image's contents.

Example: An image callback script.

 	String strImageName = request.getParameter("imageName");
 	String strDocReference = request.getParameter("reference");
  if (null != strImageName)
  {
  	Image theImage =  boRepEng.getImage(strDocReference, strImageName);
 		response.setContentType(theImage.getMimeType());
		ServletOutputStream Output = response.getOutputStream();
		byte[] imageData = theImage.getBinaryContent();
		response.setContentLength(imageData.length);
		Output.write(imageData);
		Output.close();
  }
 

See ImageManagement for an example of how to set an image callback script.

See Also:
ImageManagement, CallbackOption, DrillOption, EmbeddedCallbackOption, RetrieveView, CharacterView, RetrieveData, ReportEngine, DocumentInformation, Serialized Form

Constructor Summary
Image()
          Instantiate a new blank Image object.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Internal Use Only.
 byte[] getContent()
          Return the binary contents of an image.
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Internal Use Only.
 java.lang.String getMimeType()
          Return the image's mime type.
 java.lang.String getName()
          Return the name of the image.
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Internal Use Only.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Internal Use Only.
 int hashCode()
          Internal Use Only.
 void setContent(byte[] content)
          Internal Use Only.
 void setMimeType(java.lang.String mimeType)
          Internal Use Only.
 void setName(java.lang.String name)
          Internal Use Only.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Image

public Image()
Instantiate a new blank Image object.

Method Detail

getContent

public byte[] getContent()
Return the binary contents of an image.

Returns:
the binary contents of an image.
See Also:
Image, ImageManagement

setContent

public void setContent(byte[] content)

Internal Use Only.


getMimeType

public java.lang.String getMimeType()
Return the image's mime type.

For a list of possible mime types, see getMimeType.

Returns:
the image's mime type.
See Also:
Image, ImageManagement

setMimeType

public void setMimeType(java.lang.String mimeType)

Internal Use Only.


getName

public java.lang.String getName()
Return the name of the image.

Returns:
the name of the image.
See Also:
Image, ImageManagement

setName

public void setName(java.lang.String name)

Internal Use Only.


equals

public boolean equals(java.lang.Object obj)

Internal Use Only.


hashCode

public int hashCode()

Internal Use Only.


getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()

Internal Use Only.


getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
                                                                java.lang.Class _javaType,
                                                                javax.xml.namespace.QName _xmlType)

Internal Use Only.


getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
                                                                    java.lang.Class _javaType,
                                                                    javax.xml.namespace.QName _xmlType)

Internal Use Only.