Images in the database or folder

I want to make my dynamic photo gallery, for example, I want to download all the images and the details of the request, rather than self editing xml file.
I use php for it

As the text is concerned, Im OK with it
But when it comes to images, I get confused.

Please put some light on this question of the image.
can I download and store in the mysql database directly or application will move the file to a specific folder and save its path in the database?

Thanks in advance

The most commonly used method is to store the photos in folders and let the db collect just the absolute path.

Tags: Flex

Similar Questions

  • Store Images in the database VS on the desktop

    Hi, I'm using oracle developer 6i,

    my main form contains about 50 images, no process are on these images, just to open another form.

    is it better to store images in the database or on the desktop?

    s ' Please tell me which is better "in general" and in my case.

    Thank you very much

    Storage in the database is more secure then file system.

    But you are about to click on image.

    This is why, in your case, file system is the best according to my experiences.

    Hope this helps

    Hamid

  • Tiara (image) to the database file

    Hi all

    Recently, we found a problem with our application. Instead export the report to a network drive images, we save it in a database.

    So far, we have saved on a network without any problems. We are able to access our database and insert some text values in the application, but now we need to save files (images). This is where things are more complicated. Tiara features a textStream object, but not an inputstream that allows to read a byte array...

    Then, someone had a problem like this and found a solution? I found a few samples of something similar on the site of NOR, but they are all for labview...

    Any help is greatly appreciated,

    Tomas

    Void Base64StringToFile (ByRef, ByVal fullFilePath vCode)

    If FileExist (fullFilePath) then
    FileDelete (fullFilePath)
    end if

    Dim OXML: Set oXML = CreateObject ("Msxml2.DOMDocument.3.0")
    protected oNode: Set oNode = oXML.CreateElement ("base64")
    oNode.dataType = "bin.base64".
    oNode.text = vCode

    Dim BinaryStream: Set BinaryStream = CreateObject ("ADODB. Stream")
    BinaryStream.Type = 1
    BinaryStream.Open
    BinaryStream.Write oNode.nodeTypedValue
    BinaryStream.SaveToFile fullFilePath

    Set BinaryStream = Nothing
    Set oNode = Nothing
    Set oXML = Nothing
    End Sub

    Sub Base64FileToString (ByVal fullFilePath, ByRef vCode)

    Dim BinaryStream: Set BinaryStream = CreateObject ("ADODB. Stream")
    BinaryStream.Type = 1
    BinaryStream.Open
    BinaryStream.LoadFromFile (fullFilePath)

    Dim OXML: Set oXML = CreateObject ("Msxml2.DOMDocument.3.0")
    protected oNode: Set oNode = oXML.CreateElement ("base64")
    oNode.dataType = "bin.base64".
    oNode.nodeTypedValue = BinaryStream.Read)
    vCode oNode.text =

    End Sub

    I've used these two methods to read binary files and put it in the base64 string. Maybe it helps.

  • How to display an image from the file in the database

    I want to be able to display an image from the file that I have stored in a database. In the database, the image is store as a file with numbers. When I go to display only the sign of an image appears. I want to be able to display the image not the symbol for numbers of the image or file. I know I'm close I just can't understand what I'm messing, to get the image to display.

    Here is the code:

    <? PHP require Connections/Connections.php"?" >

    <? PHP

    session_start();

    {if (isset($_SESSION["fname"]))}

    }

    else {}

    Header('Location:NewRequest.php');

    }

    ? >

    <? PHP

    $User = $_SESSION ['Pnom"];

    $result = $con-> query ("SELECT ALL * from newrequest where Fname ="$User"" ");

    ? >

    <! doctype html >

    < html >

    < head >

    < link href = "CSS/Master.css" rel = "stylesheet" type = "text/css" / > "

    < link href = "CSS/Menu.css" rel = "stylesheet" type = "text/css" / > "

    < meta charset = 'utf-8 '.

    ReviewRequest < title > < / title >

    < / head >

    < body >

    < div class = "Container" >

    < div class = "Header" > < / div >

    < div class = "Menu" >

    < div id = 'Menu' >

    < nav >

    < ul class = "cssmenu" >

    < li > < a href = "Account.php" > account < /a > < /li > ""

    < li > < a href = "UpdateAccount.php" > update account < /a > < /li > ""

    < li > < a href = "NewRequest.php" > new request < /a > < /li > ""

    < li > < a href = "ReviewRequest.php" > Review Request < /a > < /li > ""

    < li > < a href = "LogOut.php" > sign out < /a > < /li > ""

    < /ul >

    < / nav >

    < / div >

    < / div >

    < div class = "LeftBody" > < / div >

    < div class = "RightBody" >

    < name of the form = "form1" method = "post" action = "" >

    < table border = "1" >

    < b >

    < td = '26' height > name < table >

    Location < td > < table >

    Description < td > < table >

    Image of < td > < table >

    < Td > status < table >

    < /tr >

    <? PHP while ($row = $result-> fetch_assoc()) {? >}

    < b >

    < class td = "GFied" > <? PHP echo $row ["Fname"];? > < table >

    < class td = "GFied" > <? PHP echo $row ['Location'];? > < table >

    < class td = "GFied" > <? PHP echo $row ['Description'];? > < table >

    < class td = "GFied" > < img src = "<?" PHP echo $row ["numero_imagenom_image"];? > "alt =" "> < table >"

    < class td = "GFied" > <? PHP echo $row ['Status'];? > < table >

    <? PHP}? >

    < /tr >

    < /table >

    < / make >

    < / div >

    < div class = "Footer" > < / div >

    < / div >

    < / body >

    < / html >

    This is what it looks like when it displays:

    Capture3.PNG

    How can I actually picture to display?

    emrenilo32520834 wrote:

    I added the .jpg but the image still does not display, the images are saved in a jpg file.

    If the images in the database to follow this format - 1234567.jpg, 9897654.jpg

    Then your original code must have worked:

    Are the images in their own folder, if so you need to add this folder for code name:

  • image uploaded to the database link

    Hello

    I downloaded the images in my server so now I want to show on different pages using php and mysql, so can someone tell me how I can do this in dreamweaver php codes or manual?

    Please begin your answer of the way to start step I have to do after the download of the image, I also know a database table also be require for images should this complete tutorial please. Therefore, please answer thank you.

    tanveerh86603130 wrote:

    I mean if I have uploaed images manually on the server and now when I create a new page in php with the mysql database and want to inlucde one of these uploaded image dynamcally, so how I can do, how can I create table for these images and then use this table for u place links to this image?

    If youre doing this manually - you should now have all your images in a folder on your server.

    To get dynamically on a page, you must include the name of the image in the database table.

    Create another field in your database table called - model_image

    Then insert the name of the image in this area, associated with the mobile _name - nokia_1100.jpg, samsung_2300.jpg etc.

    Back in your page model_details.php use a query as I pointed out in the other thread:

    $model_details = mysql_query ("" SELECT * FROM mobile_phones WHERE model_id = ' $model_id ' ' ") or die (mysql_error ());

    $model_details = mysql_fetch_array ($model_details);

    Then echo the image of the page according to the model_id adopted in the link to the model_details.php page. (replace "folder_name' by the name of the folder in which images are stored)

    as well as its other fields:

    All this can be done through server Dreamweavers behaviors if you do want to write your own code. Don't forget the code that Dreamweaver now uses dynamic development is outdated.

  • Photo setting in the form of folder icon

    Hello, I like to read novels, and there are many present novels in my laptop. Just to be more precise, I divided each novels with its cover images in separate folders and I want to put the photo of cover of each book as an icon of this particular issue.  But I am unable to do so. Is anyway you can help me with this.

    I want to just say I want to put an image in the form of folder icon.

    Thank you. Waiting for the response.

    1. Right click on the folder
    2. Click on Properties.
    3. Click on the Customize tab
    4. Click Choose file and select an image. This photo will appear on your folder icon. Note that for the image to appear, your display mode of Windows Explorer should have something bigger than "small icons".

    PS: you can optionally define an icon to visually represent your case. You can do this in the same propertiesCustomize tab, by clicking on the change icon button. In such a case, you will need to point to a file icon instead of an ordinary image file.

  • Images in the possible item checkbox?

    Hi all

    Is it possible to include images instead of text as display checkbox value? I've tried everything I know and look elsewhere, but were unable to see how.

    If anyone knows how this is possible out of the box or changing something somewhere, I'll be grateful.

    What I'm trying to do, it is essentially a list of images from the database and let the user choose which ones he wants to use. Move this list to a package of data base for treatment when the page is submitted (in it value in the form of ie 12:234:212:1)

    Thank you for the ind.

    Kind regards
    Juan P.

    Hello

    Edit your box and change no. escape special characters

    Kind regards
    Jari

    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • display of the image in the report of BLOB

    Hi all

    I have a requirement i.e.

    I want to display the image in a basic report to condition

    as if id = 1 then babou picture, id = 2 then second picture and id = 3 then third image

    I have the image in the database by type of BOLB

    I need to view in the report of this condition

    Please help me this requirement is urgent



    Reg,
    Jell

    It's not clear to me exaclty what you mean by

    >
    as if id = 1 then babou picture, id = 2 then second picture and id = 3 then third image
    >

    ID the ID of the image field is? Then you have not nead a condition in your report. But here's how show you it with a condition:

    
    
    
    
    
    
  • Adding images to the repeat region

    Hey guys, I recently started using the features of dreamweaver PHP with MySQL and I have my display of table data in a repeat region. I downloaded images to the database, but if I drag 'image' of the Recordset into the repeat region I just get a lot of binary. I read I should maybe use image URL rather than the traction of the database of images, but I don't understand how to get the images in sequence. How do I know what order to display if they are not in the recordset in PHP?  I wonder if I missed some feature of DW, as I suppose it is quite a common thing to want images in a repeat region. Any advice would be great. Thank you

    > I read maybe I should use the URL of the image

    > rather than pulling images from the database

    Fix. Storage of binary files in the database leads to performance problems.

    > but I do not understand how to get the images in sequence. How would

    > PHP know what order to display if they are not in the Recordset?

    The images are stored in the file system. The path to the image is stored in the database. The fields in the recordset with the path of the image - in order to generate the html code that displays the image in the Recordset loop.

  • Download images, creation of databases.

    So, I put together a web page that lists the products and allows a user to buy. I think that since I do the database from scratch, it might be a good idea to actually make a functional page for downloading data: (each product will have a photo, dimensions, price, identification number, description and inventory number). I also need to understand how to keep the photos on the right with the right boxes.

    Is it a good idea to try to make a functional page for all my input data, or is it better to enter just on mySQL normally?

    Can I upload a photo to a mySQL database? If this isn't the case, I put a tag < img src > in mySQL?

    Hello

    What you're talking about is a CMS. Building a (s) functional page to do this is the recommended method, and even if there are many 3rd party and open versions source around my personal opinion is: When can I build myself.

    Can I upload a photo to a mySQL database? If not, can I put a tag in mySQL?

    You can upload your images on the database using the sql BLOB, but my personal preference is to just insert the path of the image file in the database.

    PZ

  • How to download all the images in the folder to the column of type BLOB (problem of area to create BLOB)

    Hello

    I use JDeveloper 11.1.2.3 version, I need to download all the images in my local folder to the database at a time table. The problem I face is to create BLOBDomain for each of them?

    Best regards,

    Julien

    If you can access the files, that only works if they are on the server, you can read the file and create the domain of the BLOB in the file directly. The technique is the same as in the blob. Only difference is that you pass the file to the method and open the input stream of the file instead of the UploadedFile.

    Timo

  • jQuery/Ajax - images in the list of a folder in the select tag / option

    Trying to grab an image list to a file and loop through them to create a list of < select > < option > using ajax. Found this piece of code while Googling for a solution that gets the job done (I added to the click event as I want the list update/upgrade to update if a new image is uploaded to the folder without a page re - load) BUT of course the result is that the code adds the same image on each click names, so I find myself with several images with the same name in the list!

    {$(document) .ready (function ()}

    {$('.product-images').click (function ()}

    $.ajax({)

    URL: "pictures."

    success: {function (data)}

    $(data) .find ("was: {contains (.jpg)" "}") .each (function ()})

    make a loop through

    var images = $(this) .attr ("href");

    $('<option_value="'_+_images_+_'"></option>').html (images).appendTo('.product-images');

    });

    }

    });

    });

    });

    < /script >

    Gets above the list of images in a folder named "images" and added to the below:

    < select name = "product image" class = "product image" >

    < option > select picture < / option >

    < / select >

    What I need, is to stop the same image names added every time you click the < select > tag.

    Someone at - he tried to do this before and has a solution?

    I can add the list once but if new images added to the folder and then they don't show up until the page is re-rested.

    Operating system

    What I need is to stop the same image names added each time that the

    Your current code is that, with each action click the product images selection list. If I understand you correctly, you only want to add at the start of the images to the list of selection of product images. You can do this when the page initially loads by omitting the click event handler in your code in place. Or you want to initially load current images of the file and automatically load the new images to the list of false real time via ajax call? One way to do it via ajax is not to add to what is already there, but to 'rebuild' the selection at each click event list. Users might lose if they click, click, then click on back to a list of selection, as well as items from the selected list previously. Or you could store image names in a database and execute queries to the Database via ajax call to ensure that records duplicate is not appended to the list if they were already annexed during subsequent calls to ajax. The logic of programming for this scenario is quite simple.

    I can add the list once but if new images added to the folder and then they don't show up until the page is re-rested.

    To get new images (or data in real time by the way) to instantly load in the page is a named term responsive development in applications of node. Watch for more information. Loading new data into a fake outlet via ajax call will be processor intensive and taxation for the customer. There are lots of calls from application/waitforresponse on the server when you use php/ajax, which would be very tax when this method is scaling. Using Sockets open through an application node would be the best approach for something like that.

    best,

    Shocker

  • The Images path required at the database level.

    Hi all

    Merry Christmas :-)  Well, I'm just here for the updated knowledge to find the path of the images in my database. Since I could find by Google so I felt take help here.

    Please find below the details of my version of the database and at the apex.

    BANNER

    --------------------------------------------------------------------------------

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    PL/SQL Release 11.2.0.3.0 - Production

    CORE Production 11.2.0.3.0

    AMT for Linux: Version 11.2.0.3.0 - Production

    NLSRTL Version 11.2.0.3.0 - Production

    Apex Version: 4.2.3.00.08

    I can find my path set by me in the Dads.conf file, but I wanted to know as - is it possible to look for the path of the image in a table or view in DB level?

    Opinions are highly appreciated.

    Thank you

    Nitesh Perron.

    in DADS configuration you mentioned is the path to the image? Then you can see the files in the folder of images!

    Please find my G drive attachment! DADS.config

  • Where is located the apex pictures folder in an 11g Database XE installation

    Hello

    Does someone know where is located the apex pictures folder in an 11g database installation express? I did a search in the computer and I could not find
    file apex just has some sql files, is not like when you don't download apex itself,.

    I need to find this folder to add some images

    concerning
    Carlos

    XE databases use the external gateway of PL/SQL (EPG) as a Web server. The directory virtual images mapped to a location in the Repository XMLDB. It is accessible using IE on Windows. Search the forum for "WebDAV" know the other methods and platforms.

  • How to download an image in the folder and view using MySQL?

    Hello

    I want to create a page where a user can upload a picture and then I want to keep the details of the image in MySQL and PHP dynamic text allows you to display the image. Is it still possible? I have so far failed in my quest to find help on google or anywhere else besides.

    Basically what I want to do is create a page where the houses/lodges can save their information: name of the institution, Image of the institution, location, website, price range, etc. I want to allow them to download a picture from their school and the download location to a folder and, as I mentioned earlier, store only the information required to retrieve and display the image in the MySQL DB. Then, when a customer uses the search page, I want to display the results in a way that will allow them to see the image beside the name.

    Please PLEASE please someone help me I will be more than very happy. If someone has a script they let me use or at least a good tutorial or a link to worthy of information please let me know.

    Thanks in advance.

    Cedric

    There are many facts about PHP scripts or tutorials out there (google 'PHP file upload') that help you download the files in a directory on your server, but I ve never pinned scripts/tutorials that are a little "specific Dreamweaver' and you say how to integrate this functionality with insert/update server behaviors recording existing and even save info to files in a database.

    At this point, you can consider using an extension of Dreamweaver as PHP X Upload (by FelixOne) which seems to satisfy all the requirements you mention.

    See you soon,.

    Günter

Maybe you are looking for