Answer the question
In order to leave comments, you need to log in
How to store images in json in php? And how to get from there?
I know one way: write pictures in json url. But I need both pictures and lines and everything else to be in one file. Files people will download, upload, etc. json-a I want to use to store data. How to save images in json in php and take them from there?
Answer the question
In order to leave comments, you need to log in
If you really need it, then encode in Base64. This way you will store the image as text (which is what JSON requires) and be able to always do the reverse conversion. For details on google.
1. No need to store pictures in json
2. Formulate thoughts in Russian, please, with spelling and punctuation.
3. In the question, it is not bad to indicate what exactly you want to do and why.
You first learn to express an idea in the text, then ask questions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question