I am working on an application where user can send in an absolute path of an image or URL as string in API endpoint. My code is able to handle that.
Now I have been asked to add the code which can handle byte stream in string format. How can I do this and is it advisable to make this type of end point? Shouldn't it pose a security risk? This code will go to production environment in few months.