Handling Binary Data Sample

This page flow shows how to handle binary image data in a Page Flow and in a database control.

Concepts Demonstrated by this Sample

Location of Sample Files

In the SamplesApp, the sample is located at:

SamplesApp/WebApp/handlingData/binaryFlow/BinaryFlowController.jpf

On the local file system, the sample is located at:

BEA_HOME\weblogic81\samples\workshop\SamplesApp\WebApp\handlingData\binaryFlow\BinaryFlowController.jpf

To Run the Sample

  1. Start WebLogic Server in the Workshop domain.

    • On Microsoft Windows systems, run

      BEA_HOME/weblogic81/samples/domains/workshop/startWebLogic.cmd

    • On Linux or Solaris systems, run:

      BEA_HOME/weblogic81/samples/domains/workshop/startWebLogic.sh

  2. Launch the service either by opening it in WebLogic Workshop and clicking the Start button or by entering http://localhost:7001/WebApp/handlingData/binaryFlow/BinaryFlowController.jpf in the address bar of your browser. If WebLogic Server is running in the appropriate domain on this machine, you may click here to run the sample.

  3. Upload image files (GIF, JPG, BMP) using the Insert button.

Related Topics

Handling Images and Binary Data in Page Flows