Re: How to get URLs for images with in a WebApp

2013-10-17 Thread Abigail
HI THERE
I usually do the image issues using an image program.You can also take a
look at this .NET Image SDK which includes several library controls  to
perform complete image processing tasks, especially for  downloading image
from url
http://www.rasteredge.com/how-to/csharp-imaging/download-from-url/  . 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-get-URLs-for-images-with-in-a-WebApp-tp4661112p4661845.html
Sent from the Users forum mailing list archive at Nabble.com.

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



How to get URLs for images with in a WebApp

2013-08-28 Thread Andun Sameera
Hi All,

I have a use case like this which needs some help. There is folder in my
web app called images. There are some images in that folder which are
dynamically added. In my application, I want to list down URLs for all
these images. Can any one give me some hints ?

Thanks!

-- 
Regards
Andun S.L. Gunawardana
Undergraduate
Department of Computer Science And Engineering
University of Moratuwa
Sri Lanka

Blog - http://www.insightforfuture.blogspot.com/
LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
Twitter -http://twitter.com/AndunSLG


Re: How to get URLs for images with in a WebApp

2013-08-28 Thread Maxim Solodovnik
((WebApplication) WebApplication.get()).getServletContext()
.getRealPath(images)


On Wed, Aug 28, 2013 at 6:11 PM, Andun Sameera andun...@gmail.com wrote:

 Hi All,

 I have a use case like this which needs some help. There is folder in my
 web app called images. There are some images in that folder which are
 dynamically added. In my application, I want to list down URLs for all
 these images. Can any one give me some hints ?

 Thanks!

 --
 Regards
 Andun S.L. Gunawardana
 Undergraduate
 Department of Computer Science And Engineering
 University of Moratuwa
 Sri Lanka

 Blog - http://www.insightforfuture.blogspot.com/
 LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
 Twitter -http://twitter.com/AndunSLG




-- 
WBR
Maxim aka solomax


Re: How to get URLs for images with in a WebApp

2013-08-28 Thread Andun Sameera
Hi Maxim,

I tried that method. In my web app I can access a image using this url,

http://localhost:8080/ClipArts/images.jpeg

Then I tried,

((WebApplication)
WebApplication.get()).getServletContext().getRealPath(ClipArts)
((WebApplication)
WebApplication.get()).getServletContext().getRealPath(ClipArts/images.jpeg)
((WebApplication)
WebApplication.get()).getServletContext().getRealPath(/ClipArts/images.jpeg)

Each of these cases it return null. Also I am suing this code inside a
Constructor of a Custom behavior. What can be the reason?

Thanks!



On Wed, Aug 28, 2013 at 4:46 PM, Maxim Solodovnik solomax...@gmail.comwrote:

 ((WebApplication) WebApplication.get()).getServletContext()
 .getRealPath(images)


 On Wed, Aug 28, 2013 at 6:11 PM, Andun Sameera andun...@gmail.com wrote:

  Hi All,
 
  I have a use case like this which needs some help. There is folder in my
  web app called images. There are some images in that folder which are
  dynamically added. In my application, I want to list down URLs for all
  these images. Can any one give me some hints ?
 
  Thanks!
 
  --
  Regards
  Andun S.L. Gunawardana
  Undergraduate
  Department of Computer Science And Engineering
  University of Moratuwa
  Sri Lanka
 
  Blog - http://www.insightforfuture.blogspot.com/
  LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
  Twitter -http://twitter.com/AndunSLG
 



 --
 WBR
 Maxim aka solomax




-- 
Regards
Andun S.L. Gunawardana
Undergraduate
Department of Computer Science And Engineering
University of Moratuwa
Sri Lanka

Blog - http://www.insightforfuture.blogspot.com/
LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
Twitter -http://twitter.com/AndunSLG


Re: How to get URLs for images with in a WebApp

2013-08-28 Thread Andun Sameera
Hi,

It was a issue with my IDE integration. I am running the webapp via Tomcat
in IntellijIDEA. It runs the wicket application in the bin folder of
Tomcat. Thus some issue arises. Then I tried manually with Tomcat. Then it
works.

Thanks!


On Wed, Aug 28, 2013 at 4:59 PM, Andun Sameera andun...@gmail.com wrote:

 Hi Maxim,

 I tried that method. In my web app I can access a image using this url,

 http://localhost:8080/ClipArts/images.jpeg

 Then I tried,

 ((WebApplication)
 WebApplication.get()).getServletContext().getRealPath(ClipArts)
 ((WebApplication)
 WebApplication.get()).getServletContext().getRealPath(ClipArts/images.jpeg)
 ((WebApplication)
 WebApplication.get()).getServletContext().getRealPath(/ClipArts/images.jpeg)

 Each of these cases it return null. Also I am suing this code inside a
 Constructor of a Custom behavior. What can be the reason?

 Thanks!



 On Wed, Aug 28, 2013 at 4:46 PM, Maxim Solodovnik solomax...@gmail.comwrote:

 ((WebApplication) WebApplication.get()).getServletContext()
 .getRealPath(images)


 On Wed, Aug 28, 2013 at 6:11 PM, Andun Sameera andun...@gmail.com
 wrote:

  Hi All,
 
  I have a use case like this which needs some help. There is folder in my
  web app called images. There are some images in that folder which are
  dynamically added. In my application, I want to list down URLs for all
  these images. Can any one give me some hints ?
 
  Thanks!
 
  --
  Regards
  Andun S.L. Gunawardana
  Undergraduate
  Department of Computer Science And Engineering
  University of Moratuwa
  Sri Lanka
 
  Blog - http://www.insightforfuture.blogspot.com/
  LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
  Twitter -http://twitter.com/AndunSLG
 



 --
 WBR
 Maxim aka solomax




 --
 Regards
 Andun S.L. Gunawardana
 Undergraduate
 Department of Computer Science And Engineering
 University of Moratuwa
 Sri Lanka

 Blog - http://www.insightforfuture.blogspot.com/
 LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
 Twitter -http://twitter.com/AndunSLG








-- 
Regards
Andun S.L. Gunawardana
Undergraduate
Department of Computer Science And Engineering
University of Moratuwa
Sri Lanka

Blog - http://www.insightforfuture.blogspot.com/
LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
Twitter -http://twitter.com/AndunSLG