PHP Serialization - Image Saving

Is it possible to write a script that gave the user the ability to upload a file (image gif, jpg, png) and serializeit and store it as text?

In fact, the user does not have any storage, so he will not be able to upload the file and save as a file, but I captured a profile field that can store user-defined lines.

Any help appreciated?

+3
source share
2 answers

You can encode and decode binary data (e.g. image data) into text using base64_encode and base64_decode .

+7
source

, base64_encode, . - , (, blob rdbms)

+1

Source: https://habr.com/ru/post/1734045/


All Articles