Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Invalid
-
Affects Version/s: 1.6DR#2
-
Fix Version/s: None
-
Component/s: ICE-Components
-
Labels:None
-
Environment:any
Description
retrieve the image data as a collection of bytes.
contribution from Bernhard Hurzeler:
I have extended the ImageRenderer and have used the PhaseListener to deliver the actual image.
This is quite neat as you just use the ice:graphicImage but put the Entity Image in the value attribute. The Image Entity contains an byte[] array with the image (field image). I am happy for you guys to use the code and allow people to display images out of their DBs. There are shortcomings to the proposed approach. The byte[] is held in memory. Ideally one would get a hold of a stream to stream the data directly out of the DB.
contribution from Bernhard Hurzeler:
I have extended the ImageRenderer and have used the PhaseListener to deliver the actual image.
This is quite neat as you just use the ice:graphicImage but put the Entity Image in the value attribute. The Image Entity contains an byte[] array with the image (field image). I am happy for you guys to use the code and allow people to display images out of their DBs. There are shortcomings to the proposed approach. The byte[] is held in memory. Ideally one would get a hold of a stream to stream the data directly out of the DB.
Issue Links
- depends on
-
ICE-2528 Improved ice:graphicImage component (support byte[] and URL to file)
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Philip Breau
created issue -
Philip Breau
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | icm-comp.jar [ 10368 ] |
Philip Breau
made changes -
Attachment | Image.java [ 10369 ] |
Philip Breau
made changes -
Attachment | test.xhtml [ 10370 ] |
Ken Fyten
made changes -
Status | Open [ 1 ] | Closed [ 6 ] |
Resolution | Invalid [ 6 ] |