Ron Weller
05-11-2007, 07:29 PM
Is there a way to store text, numeric, and binary data (like from a file) into the same field.?
Normally If I wanted to store a Jpeg file into a field I would use the ADO Streams object to load the data into an OLE Object Field. But now I need to be able to store any kind data. Record 1 might contain Text data in that field where record two would contain an integer value. Record 3 might have a floating point value stored there, and record 4 might have an mp3 file stored there. I have other fields on the record that tell me what kind of data is stored and what size in bytes etc.
What I don't know is how to store each different kind of data into the field. This table is only used in code. There is no direct user interface, so I can use code to do all of the store and retreive functions.
Thank's in advance for any help or suggestions!
ron
Normally If I wanted to store a Jpeg file into a field I would use the ADO Streams object to load the data into an OLE Object Field. But now I need to be able to store any kind data. Record 1 might contain Text data in that field where record two would contain an integer value. Record 3 might have a floating point value stored there, and record 4 might have an mp3 file stored there. I have other fields on the record that tell me what kind of data is stored and what size in bytes etc.
What I don't know is how to store each different kind of data into the field. This table is only used in code. There is no direct user interface, so I can use code to do all of the store and retreive functions.
Thank's in advance for any help or suggestions!
ron