Catalysoft Turtle
home articles products testimonials about us contact us

Recent Articles

Should You Care About Requirements Engineering?

Recently, I (Adil) was invited to participate in a one day seminar on the subject of Requirements Engineering. Whilst I have no direct experience of t ...

Tips for Setting Up Your First Business Website

To attract all potential customers to your business you need a presence on the web. The problem is that if you haven't set up a website before, you p ...

What's Good about LISP?

LISP is a general-purpose programming language and is the second-oldest programming language still in use, but how much do you know about it? Did you ...

Open Source Tools for Developers: Why They Matter

From a developer's point of view use of open-source tools has advantages beyond the obvious economic ones. With the open-source database MySQL in mind ...

An Interview with Norbert Cartagena

An exclusive interview with Norbert Cartagena, the former editor-in-chief of Developer Shed Inc. and self-confessed fan of science fiction. In ...

The Image Sourcerer

This software is a really neat little utility for the Java programmer. It embeds binary image files (such as JPEGs, PNGs and GIFs) into Java source files.

This is useful to application developers for the following reasons:

CLOSE COUPLING
As a programmer, you can place your image close to the code that uses it (even in the same file!), reducing the chance that your program cannot find and load the image.
MORE TAMPER-PROOF
You can deliver the image as a Java .class file, making the image less vulnerable to tampering.
CODE INTEGRITY
You increase the integrity of your code and thereby help to protect your corporate image.
NO FILE SIZE LIMIT
The program employs an advanced segmentation technique to circumvent the 64Kbyte limitation on a Java method. Using this technique, you can convert images of any size to Java source code!

The main features of the software are that it:

  • Implements both a wizard-style interface for ease of use and a command-line interface for batch processing
  • Provides an image preview facility to help you quickly identify the image to transcribe
  • Generates a source file which can be compiled and run as an independent program. When run, the program displays the image that it embeds.

No more need for fiddly, once-only image conversions! The Image Sourcerer is a simple and cost-effective solution for all serious Java application developers.

Using the Software

Once you have downloaded the sourcerer.jar component, you should be able to double-click on it to start it up. (If this does not work, it could be because you do not have a JRE installed, or because you have changed the default association for a .jar file).

Alternatively, you can start up the program by typing the following in a command window whose working directory is the directory containing the sourcerer.jar file.

java -classpath sourcerer.jar com.catalysoft.sourcerer.ImageSourcerer

Example

Suppose you wish to embed the image

<Ernie> into a Java program.

You use the simple wizard-style interface...

Screenshot

... to translate the image into a Java source program:

System Requirements

The Image Sourcerer has been designed, written and tested on a Windows PC using J2SE1.4 (a.k.a JDK1.4), but as with other pure Java programs, it will work on other platforms too. We are proud of our software and value your feedback on the quality of our products.

Note: The unregistered version has a fully functional wizard interface, but generated source code is dependent on the sourcerer.jar to preview the image. If you register, this dependency is removed, you can cut and paste from the generated source code into your own programs, and the batch mode will be enabled (so you can automate image conversion).

Go to our products and downloads page to download the program.

Contact register@catalysoft.com to register.


Simon White