i want to run the applet on the browser in java.I have to load and manipulate big size images on the applet.
whether is it possible or not?
can any body give me the resolution for the same.
Thanks,
Mishal Shah
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.
It mostly depends on how much memory the browser will give your VM. If it doesn’t specify anything, you have 64MB with the Sun VM which limits how big the image in RAM can be.
But the actual image can be much bigger: Uncompress the image into a file and then use mmap’d file access (see FileChannel if your have Java 5). Then you can access the raw data and work on any image size (even though it will be slower than when you can keep the whole image in RAM).
If you have Java 1.4, you’ll have to use
RandomFileAccessand implement your own buffering strategy. That can be pretty slow, though, depending on the operations you want to support.If that’s not enough, your other options are to allow users to download the application or maybe Java WebStart.