The maximum POST size depends on web server and web browser. I have a feeling that the the Base64 sample on your post is partial and probably large. Since this is post under ASP classic, check
AspMaxRequestEntityAllowed
setting of your web server. That should give you some ideas.