Hi Martin,
at localhost, the mounting of the resource works, but not at the server (cannot
find the image).
Do you know a tip why this only works at localhost?
ResourceReference r = new ResourceReference("facebook") {
@Override
public IResource getResource() {
return new QRResource(user);
}
};
WebApplication.get().mountResource("/facebook/test.png", r);
Thanks, Chris
> Am 16.05.2015 um 23:20 schrieb Martin Grigorov <[email protected]>:
>
> Hi,
>
> Check http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/.
> You may use Wicket's Session to decide what to serve for different users.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Sat, May 16, 2015 at 8:14 PM, Chris <[email protected]> wrote:
>
>> Hi all,
>>
>> I would like to combine several shared image resources into a new dynamic
>> image resource. The image itself should not be displayed on a Wicket page
>> but its URL is needed as input to a JS script.
>> Is there a quick way to read the shared image resources (other then via
>> RequestCycle.get().urlFor(new SharedResourceReference("images"),
>> params).toString() and using the URL for ImageIO.read(url)?
>>
>> How can I get the URL of the newly created image resource? As the URL
>> should be unique for each session/user I think that I cannot mount it.
>>
>> br Chris
>>
>>
>>
>>> Am 16.05.2015 um 15:25 schrieb Chris <[email protected]>:
>>>
>>> Hi all,
>>>
>>> how is it possible to assign a shared image resource to a bufferedImage?
>>>
>>> The shared resource reference is „image“ which is a file folder serving
>> different images, which are specified via page parameters.
>>> final PageParameters params = new PageParameters();
>>> params.set("fileName", "image.jpg“);
>>> BufferedImage bi = …
>>>
>>> Thanks, Chris
>>>
>>>
>>>
>>
>>