Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving Picture type from database
Message
From
26/05/2002 04:10:44
 
 
To
26/05/2002 03:30:59
Yossi Moses
I.S.R Corporation
Jerusalem, Israel
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00661429
Message ID:
00661430
Views:
13
This message has been marked as the solution to the initial question of the thread.
1. If you want to save picture in temp file, which will be open using Image in VFP, you do not need to save picture with correct extension. You can save, for instance, GIF file as "TempFile.jpg" and Image will open the file properly;
2. Anyway, if you want to know properly type of picture, consider adding description field in table, which will contain, in addition to other information about picture, also file type. Some formats contain file type (for instance, GIF files begin with used GIF format (GIF87a, GIF89a) - you can see this by opening some GIF file in Notepad; also JPEG files contain JFIF string near to beginning of file; BMP files begin with "BM"). But some formats do not contain this information (ICO, CUR).

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform