gaqsavvy.blogg.se

Save wideimage to database
Save wideimage to database










Your best solution (and only too I guess) is to create another function that handles just the image. Well, as other people mentioned you cannot dump the output of wideimage (or any image) on a html page. $content = WideImage::load($filecontent) How can I ensure the proper headers are being issued? What can I do to fix this? public function actionImage($model, $fileModel) = WideImage::load($filecontent) īut when the $content is rendered it shows the following BLOB string instead of rendering the image.

save wideimage to database

FileModelDisplayUtil::convertSizeToHumanReadableAndGet((int)$fileModel->size)

save wideimage to database

$filecontent = FileContent::getById($fileModel->id) Using the WideImage extension, I am attempting to render an Image Blob from the database using this function: protected function renderControlNonEditable()Īssert('$this->model instanceof Item || $this->model->getModel() instanceof Item') įoreach ($this->model->files as $fileModel)












Save wideimage to database