469,926 Members | 1,784 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

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


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.


Jun 4 '06 #1
1 2283
16,027 Expert Mod 8TB
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.
Apr 21 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Will McGugan | last post: by
2 posts views Thread by Eric McDaniel | last post: by
14 posts views Thread by horos | last post: by
9 posts views Thread by zacariaz | last post: by
2 posts views Thread by Adam Teale | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.