Results 1 to 2 of 2

Thread: How to inject a file in springframework?

  1. #1
    Join Date
    May 2011
    Posts
    5

    Default How to inject a file in springframework?

    I am trying to find a way to inject a file in Spring. How do I do it? I have tried this approach such as the following but does not work :

    Code:
    <bean id="image" class="java.io.File">
    		  <constructor-arg  value="classpath:some/path/toimage/somename.gif"/>
    	</bean>


    This does not work. Any help?

    thanks

  2. #2
    Join Date
    May 2011
    Location
    Madrid (Spain)
    Posts
    101

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •