• Post Reply Bookmark Topic Watch Topic
  • New Topic

Uploading file path in properties file  RSS feed

 
Rohit Kumar
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the below code to upload file and works fine. I am saivng the files at C:/upload/images which is declared in the above code.

How can I put this path(C:/upload/images ) in the properties file, so that any change in destionation can be changed directly in propertied file ony. Any suggestions



[ Edited to use code tags - Paul Sturrock ]
[ August 31, 2007: Message edited by: Paul Sturrock ]
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not an advanced question. Moving...
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rohit Kumar:

How can I put this path(C:/upload/images ) in the properties file, so that any change in destionation can be changed directly in propertied file ony.


Can you please clarify your doubts? Do you know how to read from a properties file? What else do you have trouble with? What have you tried so far?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!