Services such as Dropbox can upload an image, return file data in various forms, including as an ArrayBuffer array. In Webkit, you can create a blob: URL that refers to the downloaded data, and then set it as the src attribute.
Example: http://jsfiddle.net/Jan_Miksovsky/yy7Zs/ retrieves the image data as an ArrayBuffer array, and then creates the blob: URL and the arms that belong to the img element. This example works in Chrome, but not Safari 6.0.2.
According to Can, I Use ( http://caniuse.com/#feat=bloburls ) and other sources of Safari 6.x supports creating URLs for blob objects. And Safari really supports using createObjectURL through the global webkitURL prefix. However, if the resulting blob URL is passed to the img src element, the image is not displayed.
Is there any other way in Safari to render the resulting image this way?
source
share