Answer the question
In order to leave comments, you need to log in
How to delete a file after use?
The web application sent a request to the API, the response is an image. I have to save it in a folder, and then I add it to the view (I use Laravel). But after closing the page, this file is not needed. How can it be removed?
For request to API I use Guzzle
Or is there another way to display image in html page without saving?
Answer the question
In order to leave comments, you need to log in
You are probably looking for this - https://ru.wikipedia.org/wiki/Data:_URL
<img
src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAw
AAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFz
ByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSp
a/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJl
ZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uis
F81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PH
hhx4dbgYKAAA7"
alt="Larry" />
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question