Opened 12 years ago

Closed 12 years ago

#4456 closed defect (invalid)

GetFieldAsString() does not return entire string

Reported by: rhaden Owned by: tamas
Priority: high Milestone:
Component: default Version: 1.8.0
Severity: critical Keywords: GetFieldAsString CSharp
Cc:

Description

The GetFieldAsString() method seems to truncate the returned string to 75 characters or fewer. This behavior is at least present in the C# bindings for GDAL - I'm not sure if it's present in the native library.

I've attached test data which illustrates the issue. It's a Microsoft Access database with ESRI Personal Geodatabase formatting. There's an additional table called BinaryRecords which contains two fields: an ID field and a field called BinaryData which is of type "OLE Object" (Access' equivalent to a BLOB). The table contains three records, each of which has a 1024-byte-long value in the BinaryData column.

Attachments (1)

test.mdb (576.0 KB ) - added by rhaden 12 years ago.

Download all attachments as: .zip

Change History (3)

by rhaden, 12 years ago

Attachment: test.mdb added

comment:1 by rhaden, 12 years ago

Owner: changed from warmerdam to tamas

comment:2 by Even Rouault, 12 years ago

Resolution: invalid
Status: newclosed

GetFieldAsString() in the native library only returns a maximum of 80 characters for non-string fields. So this is expected. I'm closing this ticket since #4457 asks for GetFieldAsBinary() which is the right thing to do here.

Note: See TracTickets for help on using tickets.