I have an application and i want to secure my icons and logo from being used by others once the application is distributed. i have seen some applications has their icons as *.class file instead of the real image. how can i do this?
Disclaimer: I haven't tried it out myself. Just thinking out loud.
1) Have a class which has a byte array and other instance variables for image attributes you might be interested in.
2) Choose the image you want to display. Extract the bytes and info and wrap them in this class
3) Persist the instance.
4) When you want to display the image, deserialize the object, extract the bytes, re-create the image from the bytes and use it.