Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

storing/retreiving images using mySQL and Perl

storing/retreiving images using mySQL and Perl

storing/retreiving images using mySQL and Perl


Im wondering where I can get more inforamtion on how to store and retreive images in a mySQL database using SQL from
within Perl scripts. Is this something that is wise, or would it be better to store the images/binary info directly on the web
server and then have a URL that points to the image in the database? Does anyone know of a tutorial that shows how to
upload images and other binary data into a mySQL database and then retreive them? Thanks for any help!


Mike Judkins
"You program now!"

RE: storing/retreiving images using mySQL and Perl

Definitely better to simply store the image as a file on the server and save the URL as the record. Actually I don't even save the full URL most of the time. I simply record the filename as a number, without an extension, so the records are small, and I let my PHP script handle the URL. As long as your script decides where the files are saved, the only thing the database needs to know is the filename, or even just part of it (---.jpg)

Since my experience is with PHP, i'm not sure just how it would work with Perl, but it's probably fairly simple.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close