You could try using a RawScreen inside of an IFrame inside of a portlet. Here is a quick run down of a possible approach.
1. Create a screen class, ImageDisplay that extends RawScreen. 2. Create a portlet with an IFrame whose source: http://localhost/jetspeed/screen,ImageDisplay?imageId=image12345 3. Once the image is uploaded, store it as session attribute with the key of "image12345" 4. The code in the ImageDisplay class should extract the image content from the session, set the content type to the appropriate image/*, and use getContent() to send the raw image data down to the browser. -scott > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, March 14, 2003 6:26 AM > To: [EMAIL PROTECTED] > Subject: Show a uploaded image > > Hi, > > how i can show a uploaded image in a portlet page. I gat a > org.apache.turbine.util.upload.FileItem from the RunData and have the > jpg-fle for example as a byte-array. I want to show this pic in a portlet. > > Must i store this file temp. on the harddisk ? I mean that isn't the best > way. > > Has anybody other solution ? > > Robert > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
