Questions tagged as 'blob'

2
answers

Display longblob field contents containing PDF file

I have a question regarding the longblob data that is stored in the Database. I currently have this for the other data: echo "<tr><td>Email:</td>"; echo "<td>"; if ($exibe['Email']) { echo $exibe['Email']...
asked by 14.02.2014 / 11:09
2
answers

Methods of storing images

I am studying how best to store some images of users that are registered to my system. I found 3 ways to resolve this issue: Save to a local directory , Save as BLOB and Save as Base64 . I would like to know the pros and cons of these...
asked by 10.11.2015 / 21:00
1
answer

Slideshow with MySQL BLOB images

I'm setting up an image manager and I need to display these images on a TV, via the browser for a slideshow. I can set up a slide show by setting each image's address, but I have several images in the DB, and I'd need to create an array of im...
asked by 26.01.2015 / 19:12
2
answers

How many images can I save in a blob mysql field?

Can I record multiple images in one field blob ? Or do I have to create multiple fields? Imagem1 , Imagem2 etc ...? I wanted to know if there is any way to do this without having to create multiple fields.     
asked by 04.08.2014 / 15:37
1
answer

How to upload using PHP image in BLOB link?

I'm making use of a GitHub (xkeshi / image-compressor) project that compresses images using JavaScript. It generates a download of the compressed file with the following link for example blob:http://localhost/945f825f-054a-4170-9d79-ac1dba593...
asked by 04.08.2018 / 03:09
1
answer

Is it possible to place an HMTL file inside the database?

Is it possible to save an HTML file to a BLOB column within the database and then display it as part of the page in PHP? Why do this: It's more for a learning experiment to compare if it gets better than a include on the page....
asked by 26.10.2018 / 23:22
1
answer

Extract data from a BLOB field in MySQL

I have a select where it has a column where it is returning me in <BLOB>    QUERY SELECT * FROM user WHERE user_id=1    RETURN: id data_cad user_data 12 2017-03-01 21:38:57 <Blob>    In the BLOB...
asked by 30.03.2017 / 23:49
3
answers

Convert string to blob and save to bank

I'm developing a mobile application that has a form where the user can attach an image, the image is being sent as a string via rest to the server and saved in the blob-type database, however, I'm having trouble converting from string to blob fr...
asked by 11.01.2018 / 16:47
1
answer

Save file with extension

I would like to recover a file of type blob , and add the extension, without the user having to type this extension at the time of recovery. As it stands, I'm saving and also recovering, but recovering without the extension. I have the...
asked by 20.09.2015 / 21:17
1
answer

How can I transform a BLOB file into an image using PHP?

I need to transform a BLOB file that comes from a MYSQL database to the Image type, to use on my site, I need to do the conversion using PHP, when I use the image in BLOB format, it goes to the whole site in binary .     
asked by 18.11.2016 / 18:08