Solved

Store JPG to SQL 7.0 w/ ADO, D6

Posted on 2002-03-06
2
196 Views
Last Modified: 2010-04-05
I need some sample code to save a JPG image file to SQL 7.0 using ADO and Delphi 6.0. And retrieve from SQL.

Thanks.

Jammy
0
Comment
Question by:jlislo
2 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 200 total points
ID: 6844068
any blob content

store
TBlobField(dataset.fieldByName('BlobFieldName')).LoadFromFile('AFileName'); //or loadfromstream

get
TBlobField(dataset.fieldByName('BlobFieldName')).SaveToFile('AFileName'); //or savetostream

meikl ;-)
0
 

Author Comment

by:jlislo
ID: 6844146
Great! Thanks.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now