doudi5291 2018-09-25 18:09
浏览 1911
已采纳

在laravel php中将现有图像转换为base64

I'm trying to show the user saved images in product edit page. I'll show the images which is uploaded by the user in add product. I'm trying to convert the image to base64 format to show it in background.

when I use

file_get_contents

in my Controller it's gives me this error.

file_get_contents(full_path_to_image): failed to open stream: No such file or directory

My images is stored under "public/images/upload/FILE_NAME"

is there any trick that I miss or something that I make wrong

  • 写回答

1条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥100 微信会员卡如何外接除本用户外的商户从而可以进行优惠支付
      • ¥50 关于github项目下载运行
      • ¥15 苹果手机删除了qq软件,qq文件怎么恢复
      • ¥20 用mips 人力编程排序问题(能在mars按要求运行)
      • ¥15 Verilog小型神经网络(单层反馈神经网络)
      • ¥15 设计一个数字钟,实现时分秒的显示
      • ¥15 Clion使用头文件链接两个cpp
      • ¥15 51单片机无法触发外部中断问题
      • ¥15 基于半监督,无监督的调制识别
      • ¥15 cst求 阵列 rcs 时候 频域 时域求解器 应该怎样设置 才让两者 计算结果 相似 请附图