0

I read image file as 'File' object in JavaScript, and then converted it to DomString using -

URL.createObjectURL(File)

Now, I needed to convert this DomString represented Image file back to ArrayBuffer. Is there a method to do this in JavaScript?

unknown_boundaries
  • 1,482
  • 3
  • 25
  • 47
  • Does this answer your question? [Converting between strings and ArrayBuffers](https://stackoverflow.com/questions/6965107/converting-between-strings-and-arraybuffers) – zvi Apr 08 '21 at 05:43
  • This seems related to string. I've a requirement for image file. Image -> DomString (URL.createObjectURL) -> File/ArrayBuffer – unknown_boundaries Apr 08 '21 at 06:09
  • Just store that File at the first step. – Kaiido Apr 08 '21 at 06:30

0 Answers0