How to get bmp image from from binary blob data with php

☆樱花仙子☆ 提交于 2019-12-06 13:29:28

The problem is BLOB which is limited to 65535 bytes.

Bitmaps are roughly 4-8x the size of a compressed image and will most probably need more space to be put into the database.

I suggest altering the column to LONGBLOB or at least MEDIUMBLOB.

You don't need the library from github either, if the image is fully stored, you can use file_put_contents() (which is binary safe, yea!) the same way as with png or jpeg.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!