Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. retriving images frm database

retriving images frm database

Scheduled Pinned Locked Moved Web Development
databasehelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    diwa85
    wrote on last edited by
    #1

    hi everybody, can anybody help to retrive image from the database using ajax. -diwa

    C 1 Reply Last reply
    0
    • D diwa85

      hi everybody, can anybody help to retrive image from the database using ajax. -diwa

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Your real issue is, if the XML coming back from the database, through AJAX, contains the bytes of a bitmap, they will need to be encoded, how expensive will it be to decode them in javascript, and how do you display them ? A better approach is to have your images in your file system, the paths in your database, and have AJAX create IMG tags based on paths passed back.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      D 1 Reply Last reply
      0
      • C Christian Graus

        Your real issue is, if the XML coming back from the database, through AJAX, contains the bytes of a bitmap, they will need to be encoded, how expensive will it be to decode them in javascript, and how do you display them ? A better approach is to have your images in your file system, the paths in your database, and have AJAX create IMG tags based on paths passed back.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        D Offline
        D Offline
        diwa85
        wrote on last edited by
        #3

        thanks for ur inputs... i understood buddy,actually am having an xml file which contains the links of some 50 images.now i need to retrive the xml file by specifying the url using ajax through web browser.the images could be intially in thumbnails. wat would be the better option to do this.?

        C 1 Reply Last reply
        0
        • D diwa85

          thanks for ur inputs... i understood buddy,actually am having an xml file which contains the links of some 50 images.now i need to retrive the xml file by specifying the url using ajax through web browser.the images could be intially in thumbnails. wat would be the better option to do this.?

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Still what I said - build IMG tags in your javascript.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups