BLOB

BLOB

Post by Sia Teck Chon » Mon, 22 Jul 1996 04:00:00



Hi,

Can some teach me how to read/write a TTable's BLOB field from a array.
Thanks.

Sia Teck Chong

 
 
 

BLOB

Post by Bruno Van Wilde » Tue, 23 Jul 1996 04:00:00



> Hi,

> Can some teach me how to read/write a TTable's BLOB field from a array.
> Thanks.

Check out TBlobStream (online help available): it's a Stream you connect
with the blobfield. Then you can read/write the field as you would write
a plain file.

Greetings,
Bruno

--
          Bruno Van Wilder
                    Hewlett-Packard Research Labs, Bristol

                                        Tel. +44-117-92 29548
           "Today is the first day of the rest of your life"

 
 
 

1. Blobs: How to tell when I retrieved a null blob

Hi there,

To pass a blob by reference from 4gl to C functions, call your C function using
blob variable:

4gl code snippet:
-----------------
    define MyBlobVar    byte

    --- some more stuff...

    call MyCFunction( MyBlobVar )

In the C function, you get the blob using the function "poplocator":

C code snippet:
---------------

int MyCFunction( x )
int    x;
{

    loc_t     *MyBlobVar; /* Blob structure */

    /* Test parameter stack, etc */

    poplocator( &MyBlobVar );    /* Gets address of blob */

    /* even more stuff */

______________________________ Reply Separator _________________________________
Subject: Re: Blobs: How to tell when I retrieved a null blob

Date:    17/2/97 9:38 AM

2. Error DATE in SP SQL !!!

3. Inserting a BLOB into an Oracle BLOB field.

4. California - Oracle Solutions Director

5. Blob vs. Smart Blob

6. Oracle/Sybase developers

7. Can't use Blob in JAVA code to access Blob object

8. Newest version of database engine

9. Copy blob (image) portion to another blob

10. To BLOB or not to BLOB

11. Blobs: How to tell when I retrieved a null blob

12. To BLOB or not to BLOB

13. Inserting in a BLOB using oracle BLOB