image data from javascript to perl to sql THEN SQL to perl to javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tufty
    New Member
    • May 2006
    • 1

    image data from javascript to perl to sql THEN SQL to perl to javascript

    Hi,

    I have a webpage that lets the user upload an image. This is the posted to a perl script as a form var. The data is stored in SQL 2005 (as the new image object).

    I now need to get it back out from SQL and display it in an HTML page being generated by perl.

    I can read the data back in, but can't get it to display. (typically it justs says [Object] ) when I refere to the perl variable.

    Has anyone ANY experience / ideas on how to do this? ie moving data from a perl variable that I've re-loaded from the DB and getting it into a javascript image variable and then displaying it.

    Note, that due to the nature of the website, I cant just use URLs - I HAVE to be able to store the actaul image (hence the use of SQL).

    going nuts trying to get this working, any ideas /help REALLY appriciated - ta.

    Regards

    Eadmund
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    For this you would need to use Perl to display the image, set the src of the image as a Perl script which fetches the image data from the database. If you need to display the image dynamically, set the style.display property to 'none' initially and then 'block' when required.

    Comment

    Working...