Image file is loaded or deleted correctly, in production and development, but always with 0 Kbytes size

I have an application to load an image in MySQL (image-> file name) and then a grid to view this image. The register is created or deleted fine, and the file appear in it’s folder by correct name, but…the image file always has 0 bytes size… What’s wrong… Thanks.