dbf question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Prado

    #1

    dbf question

    I'm trying to get binary data using the VFP OleDbDriver from a dbf table
    (foxpro 9), an image to be honest.

    The big problem is the type of the field where this data is stored.

    It's a long varchar field (do not ask me why).

    When I try to use GetBytes to read the binary data I get a
    InvalidCastExce ption.

    When I get the string it always return me only a few bytes (I'm thinking
    that this bytes are the JPEG header).

    There are any workaround on this? Even in the old way (ADODB, DBC)?
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: dbf question

    John,

    Have you tried using the GetChars method to get an array of the
    characters returned?


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "John Prado" <j_m_g_p@yahoo. comwrote in message
    news:%23DHhExC9 HHA.1164@TK2MSF TNGP02.phx.gbl. ..
    I'm trying to get binary data using the VFP OleDbDriver from a dbf table
    (foxpro 9), an image to be honest.
    >
    The big problem is the type of the field where this data is stored.
    >
    It's a long varchar field (do not ask me why).
    >
    When I try to use GetBytes to read the binary data I get a
    InvalidCastExce ption.
    >
    When I get the string it always return me only a few bytes (I'm thinking
    that this bytes are the JPEG header).
    >
    There are any workaround on this? Even in the old way (ADODB, DBC)?

    Comment

    • John Prado

      #3
      Re: dbf question

      No.

      I'll give it a try.

      Nicholas Paldino [.NET/C# MVP] escreveu:
      John,
      >
      Have you tried using the GetChars method to get an array of the
      characters returned?
      >
      >

      Comment

      Working...