CONTENTS

Loading image from your server

The editor supports two different methods of image loading.

Method 1 - Load via a link

You can set the parameter "load" for DrawCanvas applet, for example:

<param name="load" value="images/myimage.png">
The value of the parameter must be a URL of a PNG, JPEG, GIF, or BMP image located at your server.
The URL may be either absolute or relative to the current HTML document.

Method 2 - Embed in HTML

You can embed the image data directly into the editor's web page. For that you have to define the parameter "image" for the DrawCanvas, for example:
<param name="image" value="iVBORw0KGgoAAAAN...lFTkSuQmCC">

The value of the parameter must be PNG or JPEG or GIF or BMP file encoded by BASE64 method.
For example, you can pass the data saved by the methods HTML form + JavaScript or POST with BASE64.


Image caching.

When the user goes to another web page (whether at your website or not) and then comes back, all the drawing changes are destroyed. You can avoid such behaviour by activating the editor's caching mechanism. To turn on the caching you have to use the DrawCanvas parameter pageid.

<param name="pageid" value"... any string ...">

pageid value should be any character string unique for every page loading.

A couple of notes on image caching: