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
Component source files