* Returns the MIME content in the form of an input stream.
* Returns null if the code needs the OutputStream object
*/
public java.io.InputStream getInputStream () throws IOException {
String attrName = runtimeData.getParameter("attribute");
IPerson person = staticData.getPerson();
if ( attrName == null ) {
attrName = "";
}
// get the image out of the IPerson as a byte array.
// Note: I am assuming here that the only thing that this
// IMimeResponse will return is a jpegPhoto. Some other
// generalized mechanism will need to be inserted here to
// support other mimetypes and IPerson attributes.
byte[] imgBytes = (byte [])person.getAttribute(attrName);
// need to create a ByteArrayInputStream()
if ( imgBytes == null ) {
imgBytes = new byte[0]; // let's avoid a null pointer