[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

Store JPG to SQL 7.0 w/ ADO, D6

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
jlislo
Asked:
jlislo
1 Solution
 
kretzschmarCommented:
any blob content

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

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

meikl ;-)
0
 
jlisloAuthor Commented:
Great! Thanks.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now