guys i need help immediately...i won't to display blob image array that store
in session with @Persist using outputstream and inputstream...the problem is
i convert image to blob byte in Capture3.java and display it already in
convert image in Capture2.java and i don't know how to use outputstream and
inputstream in my problem, this my code :

*Capture3.java*

@InjectPage
        private Capture2 next;

@Property(write = false)
        @Persist
        private List<Image> allImageSvs;

@Persist
        @Property
        private Image image;

@Property
    private UploadedFile imageGraber;

public void setupRender(){

this.image = new Image();
          
                  if(allImageSvs == null){
                          allImageSvs = new ArrayList<Image>();
                  }
                  
                  if(image == null){
                          image = new Image();
                        }
        }

Object onSelectedFromAdd() throws IOException{
        image.setSignature(IOUtils.toByteArray(imageGraber.getStream()));
        next.setAllImageRules(allImageSvs);
        next.setView(image);
        return next;
    }

*Capture2.java*

@Property(write = false)
        @Persist
        private List<Image> allImageSvs;
        public void setAllImageRules(List<Image> allImageSvs){
                this.allImageSvs = allImageSvs;
        }

public void setupRender(){

if(allImageSvs == null){
                          allImageSvs = new ArrayList<Image>();
                  }
                  
                  if(image == null){
                          image = new Image();
                  }
}

public void setView(Image image) {
                // TODO Auto-generated method stub
                this.image = image;
        }

Regards,
Tommy



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Display-blob-image-store-in-session-tp5466225p5466225.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to