HLP: Copying binary file to field 
Author Message
 HLP: Copying binary file to field

I'm trying to copy the contents of a binary file to a database field.
I am able to read data from an accompanying text file and store that
data to the database.  However I have no idea how to read the large
binary file nor do I have a clue as to how to write it to the database
once I have read it in.  The size of the file could be as larger as 16KB.

I know of no data type that can hold that much data.  (Such as a malloc()/
pointer combo in C/C++)

Any help will be appreciated...
BTW.  I'm using Visual Basic 4.0

Thanx in advance
Andre



Tue, 30 Nov 1999 03:00:00 GMT
 HLP: Copying binary file to field

Quote:

> I'm trying to copy the contents of a binary file to a database field.
> I am able to read data from an accompanying text file and store that
> data to the database.  However I have no idea how to read the large
> binary file nor do I have a clue as to how to write it to the database
> once I have read it in.  The size of the file could be as larger as 16KB.

> I know of no data type that can hold that much data.  (Such as a malloc()/
> pointer combo in C/C++)

> Any help will be appreciated...
> BTW.  I'm using Visual Basic 4.0

> Thanx in advance
> Andre

If you can get the file (binary) into a string variable, that's your
first goal as I see it.  Then, if you are storing it into a memo field,
then check out the AppendChunk method for more info.




Sat, 04 Dec 1999 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. getting BDE.HLP or BDE32.HLP file

2. Saving a HLP File Inside a SQL Server Table Field

3. Saving a HLP File Inside a SQL Server Table Field

4. Write ADO Field containing binary data (files) to the file system

5. COPY BINARY file format proposal

6. COPY BINARY file format proposal

7. Postgresql binary copy file format

8. DLL to copy binary files into SQL Server as a stored procedure

9. COPY BINARY file format proposal

10. How to copy from fields in a DBF file to a DB file

11. Problem when running a .hlp file (Windows help file)

12. pgsql/src/bin/pgaccess/lib/help (create_table.hlp inheritance.hlp)


 
Powered by phpBB® Forum Software