You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by ganea iulia <su...@gmail.com> on 2016/12/16 10:54:23 UTC

Reading Image from absolute path

Hello,
Wicket 7.

I have been struggling to read an image from absolute path but with no luck.

I have a folder with some images inside catalina base directory from where
I need to display images in my web page.
However, this does not work.


Could you please guide me on how to do this?

Thank you.

Re: Reading Image from absolute path

Posted by ganea iulia <su...@gmail.com>.
Thank you all, I will give it a try.



On Fri, Dec 16, 2016 at 3:32 PM, Tobias Soloschenko <
tobiassoloschenko@googlemail.com> wrote:

> Hi,
>
> if you mean absolute file system path
>
> https://ci.apache.org/projects/wicket/apidocs/7.x/
> org/apache/wicket/resource/FileSystemResourceReference.html
>
> If you mean path my URL:
>
> https://ci.apache.org/projects/wicket/apidocs/7.x/
> org/apache/wicket/markup/html/image/ExternalImage.html
>
> Examples are in the javadoc
>
> kind regards
>
> Tobias
>
> > Am 16.12.2016 um 13:14 schrieb Ernesto Reinaldo Barreiro <
> reiern70@gmail.com>:
> >
> > I think this example
> >
> > http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
> >
> > will do if you implement the getBytes method to read image from file
> system.
> >
> > On Fri, Dec 16, 2016 at 12:19 PM, ganea iulia <su...@gmail.com>
> > wrote:
> >
> >> Hello,
> >> Do you have any link for a tutorial?
> >>
> >> On Fri, Dec 16, 2016 at 1:04 PM, Ernesto Reinaldo Barreiro <
> >> reiern70@gmail.com> wrote:
> >>
> >>> Mount a resource that readi image form that folder
> >>>
> >>> On Fri, Dec 16, 2016 at 11:54 AM, ganea iulia <su...@gmail.com>
> >>> wrote:
> >>>
> >>>> Hello,
> >>>> Wicket 7.
> >>>>
> >>>> I have been struggling to read an image from absolute path but with no
> >>>> luck.
> >>>>
> >>>> I have a folder with some images inside catalina base directory from
> >>> where
> >>>> I need to display images in my web page.
> >>>> However, this does not work.
> >>>>
> >>>>
> >>>> Could you please guide me on how to do this?
> >>>>
> >>>> Thank you.
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> Regards - Ernesto Reinaldo Barreiro
> >>>
> >>
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
>

Re: Reading Image from absolute path

Posted by Tobias Soloschenko <to...@googlemail.com>.
Hi,

if you mean absolute file system path

https://ci.apache.org/projects/wicket/apidocs/7.x/org/apache/wicket/resource/FileSystemResourceReference.html

If you mean path my URL:

https://ci.apache.org/projects/wicket/apidocs/7.x/org/apache/wicket/markup/html/image/ExternalImage.html

Examples are in the javadoc

kind regards

Tobias

> Am 16.12.2016 um 13:14 schrieb Ernesto Reinaldo Barreiro <re...@gmail.com>:
> 
> I think this example
> 
> http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
> 
> will do if you implement the getBytes method to read image from file system.
> 
> On Fri, Dec 16, 2016 at 12:19 PM, ganea iulia <su...@gmail.com>
> wrote:
> 
>> Hello,
>> Do you have any link for a tutorial?
>> 
>> On Fri, Dec 16, 2016 at 1:04 PM, Ernesto Reinaldo Barreiro <
>> reiern70@gmail.com> wrote:
>> 
>>> Mount a resource that readi image form that folder
>>> 
>>> On Fri, Dec 16, 2016 at 11:54 AM, ganea iulia <su...@gmail.com>
>>> wrote:
>>> 
>>>> Hello,
>>>> Wicket 7.
>>>> 
>>>> I have been struggling to read an image from absolute path but with no
>>>> luck.
>>>> 
>>>> I have a folder with some images inside catalina base directory from
>>> where
>>>> I need to display images in my web page.
>>>> However, this does not work.
>>>> 
>>>> 
>>>> Could you please guide me on how to do this?
>>>> 
>>>> Thank you.
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Regards - Ernesto Reinaldo Barreiro
>>> 
>> 
> 
> 
> 
> -- 
> Regards - Ernesto Reinaldo Barreiro

Re: Reading Image from absolute path

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
I think this example

http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/

will do if you implement the getBytes method to read image from file system.

On Fri, Dec 16, 2016 at 12:19 PM, ganea iulia <su...@gmail.com>
wrote:

> Hello,
> Do you have any link for a tutorial?
>
> On Fri, Dec 16, 2016 at 1:04 PM, Ernesto Reinaldo Barreiro <
> reiern70@gmail.com> wrote:
>
> > Mount a resource that readi image form that folder
> >
> > On Fri, Dec 16, 2016 at 11:54 AM, ganea iulia <su...@gmail.com>
> > wrote:
> >
> > > Hello,
> > > Wicket 7.
> > >
> > > I have been struggling to read an image from absolute path but with no
> > > luck.
> > >
> > > I have a folder with some images inside catalina base directory from
> > where
> > > I need to display images in my web page.
> > > However, this does not work.
> > >
> > >
> > > Could you please guide me on how to do this?
> > >
> > > Thank you.
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro

Re: Reading Image from absolute path

Posted by ganea iulia <su...@gmail.com>.
Hello,
Do you have any link for a tutorial?

On Fri, Dec 16, 2016 at 1:04 PM, Ernesto Reinaldo Barreiro <
reiern70@gmail.com> wrote:

> Mount a resource that readi image form that folder
>
> On Fri, Dec 16, 2016 at 11:54 AM, ganea iulia <su...@gmail.com>
> wrote:
>
> > Hello,
> > Wicket 7.
> >
> > I have been struggling to read an image from absolute path but with no
> > luck.
> >
> > I have a folder with some images inside catalina base directory from
> where
> > I need to display images in my web page.
> > However, this does not work.
> >
> >
> > Could you please guide me on how to do this?
> >
> > Thank you.
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>

Re: Reading Image from absolute path

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Mount a resource that readi image form that folder

On Fri, Dec 16, 2016 at 11:54 AM, ganea iulia <su...@gmail.com>
wrote:

> Hello,
> Wicket 7.
>
> I have been struggling to read an image from absolute path but with no
> luck.
>
> I have a folder with some images inside catalina base directory from where
> I need to display images in my web page.
> However, this does not work.
>
>
> Could you please guide me on how to do this?
>
> Thank you.
>



-- 
Regards - Ernesto Reinaldo Barreiro