Plz help me this: In my J2ME application, I need display a captcha image from url link (ex: http://www.captcha.tv/captcha/captcha_image.php)
How i do that?, thanks
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Plz help me this: In my J2ME application, I need display a captcha image from url link (ex: http://www.captcha.tv/captcha/captcha_image.php)
How i do that?, thanks
This thread has been cross posted here:http://www.java-forums.org/cldc-midp/60833-how-display-captcha-image-url-link-j2me.html
Although cross posting is allowed, for everyone's benefit, please read:
Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
When you write, you not only write to inform in your article, but you also provide further value and relevance within your Resource Box and on your links to your blog or website. Be sure to blend these four key ingredients well and you’ll have a recipe for article success.
Thanks.
You could try using the following idea:
BufferedImage img = null;
try {
URL url = new URL(getCodeBase(), "examples/myimage.jpg");
img = ImageIO.read(url);
} catch (IOException e) {
}