Are you sure, that the file is in BMP format? Can you try other files? Not the one loaded from the database. Try to view the file in an editor/ hex-editor to see the header information of the file.
Also bear in mind that Filelength64() returns longlong.