Binary Uploads into MySQL Database?

D

Dom

Guest
How do you upload a file as a 'binary file' directly into the mysql database?

Also is there any way of reading (php 'fopen , fread ...' i imagine) the file type e.g. 'image/gif' so that it can be stored thus allowing the database to stream the file directly from the mysql database when requested?

Dom

ps. thanks in advance
 
E

Eugenio

Guest
Dom wrote:
>
> How do you upload a file as a 'binary file' directly into the
> mysql database?

You can't, if you choose generic_file or image_file as field type in DaDaBIK, the file will be stored in a folder, not in the database.

> Also is there any way of reading (php 'fopen , fread ...' i
> imagine) the file type e.g. 'image/gif' so that it can be
> stored thus allowing the database to stream the file directly
> from the mysql database when requested?

Files are automatically showed (if they are images) or linked.

Eugenio.

(Latest version of DaDaBIK when this message was posted: 2.2.1)
 
Top