Re: Streaming a binary file - IllegalArgumentException

2013-03-17 Thread Bela Takacs
Hi Sigbjørn, Hi Bob, Yeah, I think, I get the idea. So, if you want to use the HTML img tag for streaming, you need a org.apache.tapestry5.Link (for example, it can be created by a componentResources.createEventLink("image", id)) or you need to inject a LinkSource (just as in the UploadStore exam

Re: Streaming a binary file - IllegalArgumentException

2013-03-17 Thread Sigbjørn Tvedt
Hi As Bob Harner said, the "img" tag you are using is a normal html tag that takes a url. If you look at the example you are linking to, you will see that it is using 2 different classes (UploadStore and SomePage) These pages have different tasks. UpploadStore redenders a image based on the ID in

Re: Streaming a binary file - IllegalArgumentException

2013-03-16 Thread Bob Harner
The src attribute of the img element requires the URL of the image, not the image contents. On Mar 16, 2013 7:46 PM, "Bela Takacs" wrote: > Hi All, > > I am writing my very first program using Tapestry, and I've got my > first problem... > > I want to display an image in my Index.tml template, so