0

I am making an Instagram post scheduler for that I need an API from which we can select images from our device then that API converts that image into a URL so that I can use it to post my request to Instagram.

If there's any way to do this please help me.

Aryan
  • 91
  • 1
  • 5
  • a URL points to a resource - you can't convert an image on your device into an URL without that image being accessible on the internet - i.e. you'd upload the image to some server, then the URL would be the location of that image on that server – Bravo Sep 24 '21 at 02:35
  • 1
    Try using firebase storage. You can upload the image there and then fetch the URL. – Shubham Garg Sep 24 '21 at 02:45
  • 1
    If you don't want to store the image to a server, perhaps the base64 encoding of your local file could help you. Some snippets are given here : https://stackoverflow.com/questions/6150289/how-can-i-convert-an-image-into-base64-string-using-javascript – Philippe Sep 24 '21 at 02:54
  • @ShubhamGarg I can use firebase but for that, I need to know to the exact location of the file. But I want a box to appear from that we can select the file we need from the device. Like they have for Unsplash or photoshop. – Aryan Sep 24 '21 at 03:17

0 Answers0