Questions tagged as 'longblob'

1
answer

Display image stored in the Database

I'm creating a digital menu that contains photos of the dishes. I stored the photo in the MySQL BD using the following code: HTML code <form enctype="multipart/form-data" method="post" action="./processos/cadastra_item.php"> <p ali...
asked by 01.06.2017 / 03:13
1
answer

Register and display image in database with PHP [duplicate]

Hello, I would like to know how I can register an image in the database and how do I display it there, I searched the internet and saw that the field in the database has to be as longblob or has a varchar poderser, as I watched in a tutorial i...
asked by 03.09.2018 / 20:22
0
answers

Mysql Longblob only accepts file up to 128mb

Create a table to store files, but every lifetime that I send a file above 128mb all columns are null except the id. I also noticed that it saves only images, another type of file it does not want to save, like zip file for example. CREATE TAB...
asked by 25.04.2015 / 07:41
1
answer

How to create a blob link in PHP?

Hi! Well, I'm creating a video site I'm having a problem playing the videos, I put the videos in mysql and I want to play them, I did not find any way to reproduce them maliciously. The only way I got it was like this: link Do you know how...
asked by 07.05.2017 / 23:37
2
answers

Read a BLOB corresponding to an image

The following code uses MySqlDataReader to obtain a specific database record: string cmd = string.Format("Select * from socios.socio WHERE idSocio={0}", chave); MySqlCommand comandoMySQL = new MySqlCommand(cmd, ligacaoBD); MySqlDataReader read...
asked by 23.02.2017 / 11:20
1
answer

inserting image into mysql database

If I want to insert an image into the database, just use the following query: INSERT INTO teste (Id_Blob,Na_Imagem) VALUES (1,LOAD_FILE("C://imagem.png")); If I want to insert an image that is on another computer on the network, how does th...
asked by 18.06.2015 / 02:16