You have no items in your shopping cart.

Thursday, March 26, 2026 9:14:37 AM

Zero-Byte Picture

Avatar

gianttrout

Avatar

Posted: 5 hours ago

#13722 Quote

gianttrout

Posted: 5 hours ago

#13722 Quote
Hello,

I use your import module (CSV) for products. Sometimes, the imported file is a zero-byte file in the nop path of pictures, all assigned as desired 0000000_0.webp, but empty file.

The file given in CSV exists and is not empty and not damaged. So there should not be a reason to copy the file as a zero-byte file.

Could you check the following points :

there are real risks here that can lead to zero-byte or otherwise broken images.

The strongest ones are:

* no check for empty byte arrays after download/read
* no HTTP success check
* no check that validated bytes are non-empty
* insertion uses raw bytes, not obviously validated bytes
* no post-insert file verification
* later logic may delete old good pictures after a bad insert

try to check the file length too :
file1 : megabass kiss - 1 - - mgbk-ito shiner ssr auror-group - 1.webp
file2 : ITO SHINER SSR FA PI-_media_catalog_product_3_3_338b052359ec488e8cf163f0aac646a6b16c04a1_megabass_ItoShinerSSR_Pike_2340.webp

if I remove all the pictures and import the same, it's always the same pictures that are not imported/copied correctly, always zero-byte file.

Powered by nopCommerce

Copyright © 2026 FoxNetSoft. All rights reserved.