Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は mysql を使用して画像を保存しましたlongblob。jsonのデータ転送を使用する必要がありますlongblob。json_endcode($data)を返しますnull。どうやってするの?
longblob
json
json_endcode($data)
null
画像データを base64 にシリアル化することもできますが、画像が非常に大きくなる可能性があるため、これはお勧めできません。それをftpサーバーに保存し、画像へのリンクだけをデータベースに書き込む方がよい