'What is webkit 1 way of createobjecturl?

I tested URL.createobjecturl in chrome browser with large blob object and it worked like charm. But problem came when I ran same code on older webkit (version 1), which is used in smaller devices.

I have tried while loop and in that String.fromCharCode.

while (i--) {
   binaryString[i] = String.fromCharCode(blob[i]);
}

But it is taking 5-6 seconds as my blob size is 50000+.

Can anyone help me with optimized way of doing this ?

Thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source