Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a Blob Field
Message
From
29/06/2007 07:29:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/06/2007 21:33:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01236661
Message ID:
01236742
Views:
13
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform