N
N
Nonprogrammer2014-10-26 20:10:57
PHP
Nonprogrammer, 2014-10-26 20:10:57

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

3 answer(s)
V
Vladlen Grachev, 2014-10-26
@c_pro_lang

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.

D
Dmitry Entelis, 2014-10-26
@DmitriyEntelis

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.

S
Sergey Melnikov, 2014-10-26
@mlnkv

You first learn to express an idea in the text, then ask questions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question