TIFF

Available only with Corda® 7 Enterprise.

Tagged Image File Format (TIFF) is a standard file format designed to promote the interchange of digital image data. TIFF is a 24-bit, raster data, lossless format, used chiefly to store the "master" copy of images used in desktop or photo publishing.

TIFF Corda images are of high quality but, like PDF, have no drilldown or hover capability. Corda Server™ does not compress TIFF images, and consequently they are typically between 300 to 700 KB in size. However, they usually compress well using LZW or ZIP compression methods (available through save options within most graphics manipulation programs).

TIFF images cannot be viewed from a Web browser and must instead be viewed from a graphics manipulation program, such as Adobe* PhotoShop*. They cannot be embedded in a Web page.

The Corda Server TIFF capabilities are not applicable for most users.

embedding a TIFF Image Using Corda Embedder

TIFF images cannot be embedded in a Web page—they can only be downloaded and viewed with an external viewer. One common practice is to create a scheduled task to generate a TIFF image at regular intervals and then provide a link to it for users to download.

Generate a TIFF Corda image by setting the Corda Embedder outputType attribute to "TIFF." For example, assuming the Corda Embedder object is named myImage, you use the following command to set the image format to TIFF:

myImage.outputType = "TIFF";

This creates a TIFF Corda image that can be downloaded by itself or can be embedded into documents. If this is the intent, the getBytes method allows you to access a byte array of the TIFF image and even return a TIFF image directly from a Java* Servlet.

Another alternative is to save a TIFF image for future viewing using either the saveToAppServer or the saveToCordaServer Corda Embedder methods. For example: create a scheduled task to generate a TIFF image at regular intervals and then provide a link to it for users to download. If you save the TIFF image to the Corda Server, load the image in a different session with the loadFromCordaServer method.

Use the Corda Server Java Library to create TIFF images for non-Web applications. To learn how to create a Corda image using the Corda Server Java Library, contact the Corda Technologies support team (support@corda.com).

embedding a TIFF Image in HTML

Request that Corda Server generate a TIFF image by using the @_TIFF server command. For example, the following HTTP request generates a TIFF Corda image:

http://<server_address>:2001/?@_FILEexamples/bar.itxml@_TIFF

If you attempt to browse to a TIFF image—for example, entering the location above in the location bar of a browser—you are prompted to enter a location on the computer to download the file. This is because you cannot view it in a Web browser. Save the file with an .tif extension and then open it in a suitable graphics program.

TIFF images cannot be embedded in a Web page. Instead, provide a link to the TIFF image that can be viewed separately. The example below shows how you might link to a TIFF image:

<a href="http://<server_address>:2001/?@_FILEexamples/bar.itxml@_TIFF">

Click here to view the graph in TIFF format

</a>

When a viewer clicks on this link, the browser downloads a TIFF file containing the Corda image.

Accessing an TIFF Corda image in any way other than as a file download requires a proprietary system. To do this, you probably want to generate the TIFF Corda images using the methods outlined in the previous section.