Storing & Retrieving image data in a SQL2000 database via a stored procedure using VB6

I have a Banking application written in VB6 which stores data in a sql2000 database.  I now need to add capabilities to capture PDF images along with transaction data.  Could anyone please furnish me examples of how to store and retrieve Image data?  I would prefer to do this via a stored procedure and an ADO connection.    Any assistance would be greatly appreciated.
Nelson3000Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Raja Jegan RSQL Server DBA & Architect, EE Solution GuideCommented:
Hope this helps:

http://www.dotnetspider.com/projects/512-Store-Retrieve-pdf-txt-doc-Images-Sql-server-database.aspx

Kindly let me know the reason why you need procedure to do this one.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Nelson3000Author Commented:
Dear RRJEGAN17, the example you provided looks perfect.  I will do some experimentation later today and keep you posted on my progress.  Meanwhile, my reason for utilizing a stored procedure is that I thought this to be the most efficient (secure?) method for performing such database activities.  My application already utilizes stored procedures for all database operations.

Meanwhile, when dealing with binary (image) data, is it best to not use stored procedures?

Thanks again for your help...
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

Raja Jegan RSQL Server DBA & Architect, EE Solution GuideCommented:
Till SQL Server 2000, it would be easier to do it via application code compared to the TSQL approach..
0
Anthony PerkinsCommented:
>>my reason for utilizing a stored procedure is that I thought this to be the most efficient (secure?) method for performing such database activities. <<
That is correct.  However, I would question the sense of loading PDF's in a database.  In general this is a very bad idea.
0
Nelson3000Author Commented:
Dear Acperkins,

I thank you for your comments.  Indeed, it is generally unwise to store PDF documents in the database. However, my application, and the recipients, are a very unique situation.  The "sense" of my approach would not be so questionable had you asked for more details.  However, I do appreciate your taking the time to respond.
0
Anthony PerkinsCommented:
Fair enough.

Good luck.
0
Nelson3000Author Commented:
Many Thanks for your assistance.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.