Avatar: support dynamic images (StreamedContent)
See original GitHub issueIt seems to be that one cannot directly use a byte[] image in p:avatar:
<p:avatar image="#{user.profileImage}">
Would be a great addition. Many thanks in advance.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
Dynamic images with StreamedContent - primefaces
I have implemented two StreamedContent beans to dynamic load a graphic image, following the solution found here.
Read more >Dynamic Image with StreamContent in List - PrimeFaces forum
Hello Everyone, I'm trying to show multiple images, collected in a List, in a data table. This is basically Dynamic Image Streaming.
Read more >Dynamic images with PrimeFaces - DZone
PrimeFaces is a lightweight library for JSF with regard to its functionality, simplicity, and support. Its power consists in AJAX support, ...
Read more >Showing a dynamic image that depends on a Request Parameter ...
I'm trying to build a user profile page to show some details about my users. The url of the page is something like...
Read more >Creating dynamic image streaming programmatically - O'Reilly
Creating dynamic image streaming programmatically With the graphicImage component, it is possible to render an image that is created programmatically in the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tandraschko I wonder if it’s a smart move to introduce
Avatar
withimage
attribute as it seems it expects a path. One reason is security obviously (see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#security_and_privacy_concerns) and another is, most users will fetch from a local cache or db. Instead, i would remove image attr and replace it with value (to be consistent with other components) and expect just like you mentionned aStreamedContent
Removed the image attr and allow p:graphicImage as child. Updates docs and showcase