How to declare a variable that will receive a Mysql Blob in PHP?

Asked

Viewed 14 times

0

I am creating a method that will update some data, including an image that will be stored in longblob. The function declaration looks like this:

public function uploadProjeto(string $tipo, string $titulo, string $area, string $ano, string $endereco, string $descricao){


But instead of putting string, how can I get the blob?

  • If you are not having coding problems, or memory problems, you can use string without any problem.. He’s just a string after all. PHP does not have a native type of object that, when instantiated, would check if the BLOB is valid, that would be the only advantage of typing, in my view!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.