9.5 Images directly from the Web Server

Storing images in the database has the advantage of the images being stored with the relevant data and also ensures you have a backup of the image, but if you have large numbers of images or the images change frequently it may be easier to copy the images directly to the Web Server and then store a reference to the image in the database.

Define_Com Class(#PRIM_IMAG) Name(#ProductImage) Displayposition(1) Parent(#COM_OWNER) Tabposition(1) Tabstop(False) Imagesizing(BestFit)


Mthroutine Name(OnAdd) Options(*Redefine)


  #ProductImageLink := "/images/lansatools/image001.jpg"


  #ProductImage.filename := #ProductImageLink