Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Eric den Doop
  Where is Eric den Doop?
 Houten
 Netherlands
 Eric den Doop
 To: Philippe Sevin
  Where is Philippe Sevin?
 Winston Salem
 North Carolina - United States
 Philippe Sevin
 Tags
Subject: RE: General fields and bloated FPT
Thread ID: 229 Message ID: 243 # Views: 3 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Saturday, May 19, 2001 6:53:33 PM         
   


Hi Philippe,

I tried some things my self and found the following:

A small jpg file (24.576) created a fpt file of 1.282.048 bytes when I append general from jpgfile. The fpt file was only 856.064 bytes when i append general from jpgfile linked. Just like you said. It makes no difference if i register a different application with jpg file type.

I then converted the jpg file to a 24bit bmp (425.984). When i append general from bmpfile, the fpt file is 425.984 bytes. When i append general from bmpfile linked, the fpt file is 851.968. Now that is weird!

My advise:
1) store the path to the file instead of the file in your table. There are lots of controls available to display jpg files on a form and starting with VFP, jpg is natively supported.

if that is not possible for you:
2) convert the jpg files to bmp and use append general from bmpfile and do not use the linked parameter.

My guess is that VFP stores multiple copies (probably with different color and size dimensions) of the jpg file, or perhaps VFP converts the jpg to a bmp like format.

----------------
Hth,

Eric den Doop
www.foxite.com

ENTIRE THREAD

General fields and bloated FPT Posted by Philippe Sevin @ 5/18/2001 1:09:48 PM
RE: General fields and bloated FPT Posted by Eric den Doop @ 5/18/2001 1:40:13 PM
RE: General fields and bloated FPT Posted by Philippe Sevin @ 5/18/2001 2:07:46 PM
RE: General fields and bloated FPT Posted by Paul Culbertson @ 5/18/2001 2:22:39 PM
RE: General fields and bloated FPT Posted by Philippe Sevin @ 5/18/2001 3:15:35 PM
RE: General fields and bloated FPT Posted by Eric den Doop @ 5/18/2001 7:00:28 PM
RE: General fields and bloated FPT Posted by Philippe Sevin @ 5/18/2001 8:13:09 PM
RE: General fields and bloated FPT Posted by Eric den Doop @ 5/19/2001 6:53:33 PM
RE: Another reason to use normal memo for archive Posted by Ryss Unger @ 5/20/2001 11:57:27 AM
RE: Another reason to use normal memo for archive Posted by Ryss Unger @ 5/20/2001 5:35:37 PM
RE: Another reason to use normal memo for archive Posted by Dale Dedoroy @ 5/20/2001 10:53:10 PM
RE: The real story ... Posted by Eric den Doop @ 5/21/2001 9:39:20 AM
RE: The real story ...Network Traffic Posted by Ryss Unger @ 5/21/2001 12:30:52 PM
RE: General fields and bloated FPT Posted by Thomas Holt @ 5/21/2001 4:57:29 AM