The Example Files


Some of the examples you ll see in this chapter read files, but the contents of a LOB doesn t have to come from a file ”the content can come from any valid source that can be read as a string of characters or bytes. Files are used in the examples because they are an easy and common way of handling large blocks of data.

You ll see the use of the following two files in the examples:

  • textContent.txt    A text file

  • binaryContent.doc    A Word 2000 file

    Note  

    The files are contained in the directory sample_files , which will be created when you extract the example files from the Zip file available from this book s web site.

The file textContent.txt contains an extract from Shakespeare s play Macbeth . The following text shows the speech made by Macbeth shortly before he is killed :

To-morrow, and to-morrow, and to-morrow,
Creeps in this petty pace from day to day,
To the last syllable of recorded time;
And all our yesterdays have lighted fools
The way to a dusty death. Out, out, brief candle !
Life s but a walking shadow; a poor player,
That struts and frets his hour upon the stage,
And then is heard no more: it is a tale
Told by an idiot, full of sound and fury,
Signifying nothing.

The file binaryContent.doc is a Word document containing the same text as the textContent.txt file, but is a binary file.




Oracle Database 10g SQL
Oracle Database 10g SQL (Osborne ORACLE Press Series)
ISBN: 0072229810
EAN: 2147483647
Year: 2004
Pages: 217

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net