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)
Change History (3)
by , 12 years ago
comment:1 by , 12 years ago
Owner: | changed from | to
---|
comment:2 by , 12 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.