dbf question

  • Thread starter Thread starter John Prado
  • Start date Start date
J

John Prado

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
InvalidCastException.

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)?
 
John,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top