anbutechie has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I m using cgi...How can i save the attachements in DB and how can i show the content (image or doc) in UI.

Regards,
Anbarasu

Replies are listed 'Best First'.
Re: How to save and retrive attachements
by Corion (Patriarch) on Sep 08, 2009 at 08:43 UTC

    The CGI documentation has its own section about file uploads. Maybe you can explain to us better what the exact problem is you're trying to solve, what you've done already and where exactly you have problems.

Re: How to save and retrive attachements
by marto (Cardinal) on Sep 08, 2009 at 08:45 UTC

    Do you mean email attachments or files uploaded via CGI? What particular part of the problem do you have an issue with? Have you looked at DBI? You've not mentioned which database platform you are using, see BLOB regarding storage of binary data.

    Martin