Yeah, I don't think the encoder is converting all the data from the image to base64. I went to a site that converts images to base64, and I compared that to what i got from mime64.data and there seems to be some null characters within it. I can show you the two files if you need to see something.

Thanks for the help so far.