base64_encode not doing the entire file

Unsure what I’m missing here, but I’m using base64_encode to process a 10MB image (yes I’m aware of the risks, but the requirements and technologies involved are forcing me to do this), but it only seems to process the first 30KB of the file then stop. I then reverse the code and I can see the very top of the image, and the rest is transparent.

Unsure why base64_encode is stopping. Any assistance is appreciated.

Update:

It looks like base64_encode isn’t the issue. I use Microsoft SQL to attempt to save the query (sqlsrv), and it’s getting limited. I wrote the base64 encoding to a file and all of it was there. I’m currently putting it through an online base64 decoder to make sure, it it’s nearly 8MB, which makes me think it’s all there.

Sponsor our Newsletter | Privacy Policy | Terms of Service