I wanted to know can we have images as a values in properties file if so in which folder it needs to be placed. Any solutin with example is of great help else point me to some useful solution.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can have an image encoded as a base 64 string such as:
You can then decode it for example to a file with:
The
Base64class is part of the Apache Commons Library.I don’t know what your exact requirements for your applications are, but in the Java Tutorial you can find out about Loading Images using getResource.