Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert VFP Memo field to SQL Server Image Field
Message
From
13/07/2006 06:50:21
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/07/2006 13:10:30
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01135374
Message ID:
01135953
Views:
10
>So then a SQL Image field cannot be viewed from an oleboundcontrol ? If not is there any other control I can use to view it ?

Stephen,
An image field (don't let the name to misguide you) can store any binary data. That binary data could be a bmp,gif or a doc,xls,zip, exe etc. In other words besides the stored data itself you should have an idea what its content is about. You should copy it out to a file with appropriate extension:
If it's an executable with .exe extension and say ShellExcute.
If bmp copy out with .bmp extension (or in VFP9 there are more direct ways) and show via an image control
If zip then with .zip extension and process with ShellExecute or via dlls
If RTF formatted text then load to a RTF activex control etc etc.
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
Reply
Map
View

Click here to load this message in the networking platform