如何从图像资源创建base64编码的字符串 [英] how to create a base64encoded string from image resource
本文介绍了如何从图像资源创建base64编码的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经通过AJAX向PHP发送了base64编码的字符串,并使用imagecreatefromstring
创建了图像资源-一切都很好.
I have sent a base64 encoded string via AJAX to PHP and created an image resource with imagecreatefromstring
- all is fine.
现在,我想在调整图像大小后获取base64编码的字符串,但是我无法找到一个函数来获取base64编码的字符串.
Now I want to get the base64 encoded string after resizing te image, but i CANT find a function to get the base64encoded string.
推荐答案
来自
这篇关于如何从图像资源创建base64编码的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文