Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using a Blob Field
Message
De
29/06/2007 07:29:16
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
28/06/2007 21:33:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01236661
Message ID:
01236742
Vues:
12
>Hi All,
>
>I am trying to store a picture on a VFP Blob field, and then retrieve it into a form, or report.
>
>For starters, on opening the blob field, the box is read-only. Could someone tell me how to fill in details of a picture, and how to retrieve it? Theres not much help on 'help' !
>
>Thanks in advance,
>
>Steve

You can store FileToStr("myImage.ext") in BLOB. ie:

REPLACE myimage WITH FILETOSTR('C:\myimages\myPhoto.jpg')

Retrieveing is as simple as myTable.myBLOB. ie: If you've an Image control:

thisform.myImageControl.PictureVal = myTable.myBLOB

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform