How to embed the Images in the java sourse

10-11  Source: Network gathering  Views:2 

Advertisement
How to embed the Images in the java sourse
The size of the file will be too large while I put the binary code of the image into the java sourse!
thanks
You could encrypt them with a private key and then
decrypt them with a public key.
Almost had it... public key encryption works the other
way around... otherwise what's the point of
encrypting... if the decryption key is public?Spinoza's right. Public key encryption works both ways, but it would be useless in this case to encrypt with the private key. The problem is, how do you package your private key with the application in a way that doesn't allow the user to get it? Encrypt it? :-) I agree that there's no point to this exercize. If users want to screw up the application by editing its image files, let 'em.
Related articles