Professional Web Applications Themes

HELP! BLOB is killing me - Informix

Hi All, I am trying to select a BLOB into memory. Can anybody please let me know what had gone wrong? char rawbuf[1000]; $loc_t buf; buf.loc_loctype = LOCMEMORY; buf.loc_bufsize = sizeof(rawbuf); buf.loc_size = sizeof(rawbuf); buf.loc_buffer = rawbuf; buf.loc_oflags = 0; buf.loc_mflags = 0; buf.loc_indicator = -1; // What is this for? I am getting ISAM 451, but I have already make sure that the memory that I have allocated is more than twice actually needed. The informix reference is 100% useless and ambigious. :( Really appreciate if somebody can help. Thanks in advance....

  1. #1

    Default HELP! BLOB is killing me

    Hi All,

    I am trying to select a BLOB into memory. Can anybody please let me
    know what had gone wrong?

    char rawbuf[1000];
    $loc_t buf;
    buf.loc_loctype = LOCMEMORY;
    buf.loc_bufsize = sizeof(rawbuf);
    buf.loc_size = sizeof(rawbuf);
    buf.loc_buffer = rawbuf;
    buf.loc_oflags = 0;
    buf.loc_mflags = 0;
    buf.loc_indicator = -1; // What is this for?

    I am getting ISAM 451, but I have already make sure that the memory
    that I have allocated is more than twice actually needed.

    The informix reference is 100% useless and ambigious. :(

    Really appreciate if somebody can help.

    Thanks in advance.
    Kwan Guest

  2. #2

    Default Re: HELP! BLOB is killing me

    Kwan wrote:
    > I am trying to select a BLOB into memory. Can anybody please let me
    > know what had gone wrong?
    >
    > char rawbuf[1000];
    > $loc_t buf;
    > buf.loc_loctype = LOCMEMORY;
    > buf.loc_bufsize = sizeof(rawbuf);
    > buf.loc_size = sizeof(rawbuf);
    > buf.loc_buffer = rawbuf;
    > buf.loc_oflags = 0;
    > buf.loc_mflags = 0;
    > buf.loc_indicator = -1; // What is this for?
    >
    > I am getting ISAM 451, but I have already make sure that the memory
    > that I have allocated is more than twice actually needed.
    >
    > The informix reference is 100% useless and ambigious. :(
    >
    > Really appreciate if somebody can help.
    I told you where to go to find the answers. Have you been and looked?

    I don't recall the details - they're there where I told you to look.
    So, was the code too hard to understand? Or was there some other problem?

    (I said go to [url]http://www.iiug.org/software[/url] and get the SQLCMD code,
    just in case you've forgotten what I said.)

    The indicator is used to tell the database that the value is null, or
    not, when you insert data or update data. It is used by the database
    to tell you whether the values is null, or not, when you select data
    from the database.

    --
    Jonathan Leffler #include <disclaimer.h>
    Email: [email]jlefflerearthlink.net[/email], [email]jlefflerus.ibm.com[/email]
    Guardian of DBD::Informix v2003.04 -- [url]http://dbi.perl.org/[/url]

    Jonathan Leffler Guest

Similar Threads

  1. php variables are killing me
    By Sean McMurtrey in forum Macromedia Flash Data Integration
    Replies: 1
    Last Post: June 22nd, 02:07 PM
  2. Many ASP.NET controls killing my CPU
    By Carlos in forum ASP.NET Building Controls
    Replies: 2
    Last Post: April 9th, 08:14 AM
  3. OSX- the slowness is killing me
    By sly one webforumsuser@macromedia.com in forum Macromedia Fireworks
    Replies: 4
    Last Post: October 9th, 11:00 PM
  4. Killing IE via win32::ole ??
    By C. Martin in forum PERL Miscellaneous
    Replies: 0
    Last Post: July 25th, 10:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139