Quote:
Originally Posted by phpmagesh
can you tell me what will be the problem in this,
Not really without any more information.
This code should be working fine on a standard installation of the software you mentioned.
We would need to know
how your server is different from the standard installation.
Do you use a language specific character set? Like Chinese or Japanese?
Does your browser default to a character set other than ISO? (Which browse do you use?)
Try issuing the following command on your MySQL database:
- SHOW CREATE TABLE FileStorage\G
Post the entire CREATE TABLE command that gives you here. (within [code] tags please).
There I would be most interested in the CHARSET clause at the end. It should be "latin1". If it is not, that might be a problem.
The corrupted file, how exactly is it corrupted? How does the corruption present itself?
Can you download it, but it's empty? If not, is there a difference in sizes compared to what MySQL says it should be?