I have a page that sends html5 canvas data, encoded as a base64 bmp image (using this algorithm http://devpro.it/code/216.html) to a serverside process that converts it into
This could happen if sf contained invalid image data. Verify the validity of the data you're passing into the stream, and see if that fixes your issue.