I created a button that when clicked, capture an image of a chart, encode it into base64 format and then send it out to a webservice. The problem i'm having is that when the image size seem to go close to 100k, the whole browser crash when running this line:
encodedData = ImageSnapshot.encodeImageAsBase64(ohSnap); If the image is 80k or less, it doesnt crash. Has anyone else experienced this problem. Thanks public var ohSnap:ImageSnapshot = new ImageSnapshot; [Bindable] public var encodedData:String private const pngEnc:PNGEncoder = new PNGEncoder(); private const jpgEnc:JPEGEncoder = new JPEGEncoder(); private function captureImg():void { ohSnap = ImageSnapshot.captureImage(containerChart1, 0, jpgEnc, true); encodedData = ImageSnapshot.encodeImageAsBase64(ohSnap); }