|
-
Nov 7th, 2003, 11:31 AM
#1
Thread Starter
Frenzied Member
Binary
I have a field in a database that is stored as binary.
I retrieve it into a string variable. How can I read it?
Don't anthropomorphize computers -- they hate it
-
Nov 7th, 2003, 12:12 PM
#2
Frenzied Member
Most binary data is the memory representation of a datatype, like double, for example, or a UDT
What datatype(s) is this supposed to be?
-
Nov 7th, 2003, 01:14 PM
#3
Thread Starter
Frenzied Member
It is a datatype.
I want to know how I can read it from a string as oppose to from a file. If I use the open statement I get a file not found error.
Thanks,
Don't anthropomorphize computers -- they hate it
-
Nov 7th, 2003, 01:40 PM
#4
So Unbanned
You should use a byte array to read it.
VB Code:
Dim ByteAry() as Byte
Dim strRet as String
'todo: read into ByteAry
'use Str Conversion to turn ACSii, into unicode(B-STR)
strRet = Strconv(ByteAry, vbUnicode)
-
Nov 7th, 2003, 02:28 PM
#5
Thread Starter
Frenzied Member
But how do I read it into a bytearray?
I have the value in a string variable.
Don't anthropomorphize computers -- they hate it
-
Nov 7th, 2003, 02:30 PM
#6
So Unbanned
Originally posted by vbgladiator
But how do I read it into a bytearray?
I have the value in a string variable.
Uhm. If you're inputing a string into a database it's going to take twice the space.
You do it like you use a string. It's easy.
-
Nov 7th, 2003, 02:32 PM
#7
Thread Starter
Frenzied Member
No, I have the value in a memo field in an access database.
I retrieve the value into a string variable.
now, I need to be able to read it. It is used to pass it into a C dll but I need to read it in VB
Thanks,
Don't anthropomorphize computers -- they hate it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|