Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SIx Driver RDD v3.00 - Reference Guide - <b>sx_file2blob():</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Sx_File2BLOB():

  Syntax:   Sx_File2BLOB( <cFileName>, <cFldName> [,<nActionCode>] )

        cFileName = The name of the file to be stored in the memo file.

         cFldName = The name of the memo field to store the file in.

      nActionCode = Optional numeric code indicating an action to be taken
                    on the file as it is stored to the database.  The
                    default is no action (The file is stored as-is).

                    These action code values are defined as manifest
                    constants in the SIXCDX.CH file as follows:

                      BLOB_FILECOMPRESS  = Compress the file
                      BLOB_FILEENCRYPT   = Encrypt the file

                    NOTE:  Although these constants preprocess into numeric
                           values, you should not use the numeric values in
                           your source code.  Instead, you should use the
                           constants, as defined above.  This will insure
                           compatibility with all future releases of the
                           SIx Driver.

  Returns:   Logical.  TRUE (.T.) if successful, FALSE (.F.) if not.

  Description:   Sx_File2BLOB() will store a file of any type (ASCII or
                 binary) into an .FPT/.SMT memo field.  The file to be stored
                 can be of any size.  The file can also be optionally
                 compressed or encrypted as it's stored in the memo field.

                 The term "BLOB" is an acronym for Binary Large OBject,
                 which means basically any type of binary data, not just
                 plain ASCII text that would normally be associated with
                 memo fields.

    NOTE:  This function is NOT supported under SIXNTX.

  Examples:

    USE test VIA "SIXCDX"  // Open TEST.DBF and TEST.FPT

    // Read the IMAGE.PCX file into the NOTES field, with compression
    Sx_File2BLOB( "IMAGE.PCX", "NOTES", BLOB_FILECOMPRESS )


See Also: Sx_BLOB2File()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson