Re: Display blob image store in session

2012-02-13 Thread tommy_tape5
Hi David...

can't you help me to implement your code to my code how to display blob
image from session...

Regards,
Tommy

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Display-blob-image-store-in-session-tp5466225p5481290.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



Re: Display blob image store in session

2012-02-13 Thread David Canteros
Hi!

Check this set of mails :
http://tapestry.1045711.n5.nabble.com/Uploading-then-displaying-Images-td3423946.html

It could help you.
Regards!

--
David Germán Canteros


2012/2/8 tommy_tape5 

> 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 allImageSvs;
>
> @Persist
>@Property
>private Image image;
>
> @Property
>private UploadedFile imageGraber;
>
> public void setupRender(){
>
> this.image = new Image();
>
>  if(allImageSvs == null){
>  allImageSvs = new ArrayList();
>  }
>
>  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 allImageSvs;
>public void setAllImageRules(List allImageSvs){
>this.allImageSvs = allImageSvs;
>}
>
> public void setupRender(){
>
> if(allImageSvs == null){
>  allImageSvs = new ArrayList();
>  }
>
>  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
>
>


Display blob image store in session

2012-02-08 Thread tommy_tape5
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 allImageSvs;

@Persist
@Property
private Image image;

@Property
private UploadedFile imageGraber;

public void setupRender(){

this.image = new Image();
  
  if(allImageSvs == null){
  allImageSvs = new ArrayList();
  }
  
  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 allImageSvs;
public void setAllImageRules(List allImageSvs){
this.allImageSvs = allImageSvs;
}

public void setupRender(){

if(allImageSvs == null){
  allImageSvs = new ArrayList();
  }
  
  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