Laravel return image preview from base64
问题 I have base64 image and I want to return the image preview not the base64 code. I tried return response(base64_decode($results->getBase64Image()), 200, ['Content-Type' => 'image/png']); but it returns a weird output. 回答1: I have been use this.. for base 64 images )))) function store() { $data = $this->request->img; list($type, $data) = explode(';', $data); list(, $data) = explode(',', $data); $directory_bucekts = implode('/',str_split(strtolower(str_random(2)))); Storage::disk('public')-