>I have a table with a memo field that actually contains the contents of a file
>like :
>
>
>tmp = filetostr("some file")
>select myTable
>replace FileMemo with tmp
>
>
>How do I get that into a byte array in c#, either using a OleDbDataReader or from a VFP7 dll. The data reader does not seem to let me GetBytes, and I am not sure how to pass the data from a dll. I tried return CREATEBINARY(FileMemo), but it still cuts off at the first null.
The problem with the return is that it's typed as a string, so it won't work properly as a byte array.
One thing you can try to do is return the data as a variant then explicitly try to cast it to a bytearray (ie. using late binding to the data)...