Concert image data: URI to file:/// react native

217 Views Asked by At

I need help here.

I have an image data URI and I want to convert it to file:/// i.e. from

data:image/jpeg;base64,/9j/4QBKRXhpZgAASUkqABAAAAAAAAAAAAAAAAEAMQECAB8AAAAiAAAAAAAAAEFkb2JlIFBob3Rvc2hvcCAyMS4xIChXaW5kb3dzKQAA/+ENnWh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8APD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bW...

to

file:///data/user/0/host.exp.exponent/cache/ExperienceData/%2540anonymous%252FDataStreet-dc8e0d36-942b-4031-8cde-a7c936aeef58/ImagePicker/786d58b2-fa4a-49bd-b606-6c22e478ea49.jpg

How Can I do this?

Thanks in advance.

0

There are 0 best solutions below