I have a mysql dtabase which contains a byte[]
from a file in a BLOB
.
Now I want to read the byte array from the database and output the file.
So:
- How can I get a
byte[]
from mysql in PHP and - How can I output a file from a
byte[]
in PHP?
I have a mysql dtabase which contains a byte[]
from a file in a BLOB
.
Now I want to read the byte array from the database and output the file.
So:
byte[]
from mysql in PHP andbyte[]
in PHP?