in reply to Need code to save Blob into a file

Well it depends ...¹

Probably you just need to read binmode

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

¹) for instance if it was already stored properly.