You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Vikas <vi...@unnat-e.com> on 2007/09/24 18:13:49 UTC

Can I put image file in service (in .aar) file?

Hi Friends,

    I want to access some images from service class ie on server side. Like we put resources in .jar file, Can we put resources in .aar file and refer that at runtime?

I am able to send images from service to client but all paths are hard coded.

        Actually I want to send images from service to client. So I need to put that images in to "myService.arr" file, same as we are doing with JAR file.

Any suggestion?

With best regards
From
Vikas R. Khengare

Re: Can I put image file in service (in .aar) file?

Posted by Deepal jayasinghe <de...@gmail.com>.
Well you can put anywhere inside the .aar file can you can get the
resource as classLoader.getResourceAsStream(file name); say for an
instance if you put your resource under service aar as follows

MyService.aar
  META-INF
     services.xml
  resources
      myImage.jpg

serviceClassLoader.getResourceAsStream("resources/ myImage.jpg");

Thanks
Deepal
> Hi Friends,
>  
>     I want to access some images from service class ie on server side.
> Like we put resources in .jar file, Can we put resources in .aar file
> and refer that at runtime?
>  
> I am able to send images from service to client but all paths are hard
> coded.
>  
>         Actually I want to send images from service to client. So I
> need to put that images in to "myService.arr" file, same as we are
> doing with JAR file.
>  
> Any suggestion?
>  
> With best regards
> From
> Vikas R. Khengare


-- 
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org