Results 1 to 3 of 3

Thread: Rendering images coming from Database - MYSQL

  1. #1
    Sencha Premium Member
    Join Date
    Dec 2007

    Question Rendering images coming from Database - MYSQL

    Hello, is there a way that I can render a image on the browser (let's say in a grid component), that is coming
    directly from the database - it is NOT on the file system, the image is being stored on the database only.

    The back-end that we use is PHP.

    I would like to avoid having duplicated images, file system and database. That is the reason of my question.

    Worse case scenario I believe that I would have to some how save the image to the file system via PHP and then
    use EXTJs to render it on the screen loading the images from the file system.

  2. #2


    Performance-wise I'm not sure about storing your images 'database-only', but that's not your question... I think what you want is the <OBJECT> tag pointing to the php script returning the image.

  3. #3
    Sencha User MiamiCoder's Avatar
    Join Date
    Mar 2009
    Miami, FL


    You can point the src of the image to the php script that streams the image. Something like <img src="image-generator.php?id=img1" alt="img1" />

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts