How to determine the size of long raw data types?
From: Guglielmo Incisa <gincisa_at_usa.net>
Date: 1998/02/02
Message-ID: <01bd2ff5$5dfebaf0$849fb8c2_at_bucarest>#1/1
Date: 1998/02/02
Message-ID: <01bd2ff5$5dfebaf0$849fb8c2_at_bucarest>#1/1
Hi,
Does anyone knows how to determine the size of LONG RAW data (blob), before downloading it using Pro*C?
I need this information because I would like to use the malloc() function to allocate exactly the needed memory. The Oracle Pro*C/C++ Precompiler Manual use only this kind of allocation (which is not really dynamic):
typedef unsigned char *my_raw;
EXEC SQL TYPE my_raw IS VARRAW(4000) REFERENCE;
my_raw graphics_buffer;
graphics_buffer = (my_raw) malloc(4004);
The problem is, if I have a blob larger than 4000 bytes I need to change the source code and compile it once again.
Thanks in advance
Guglielmo Incisa
Atel Spa
Received on Mon Feb 02 1998 - 00:00:00 CET
