Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BIG!!!! Pictures in General fields and VERY slow
Message
 
 
À
11/12/2003 14:01:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00858269
Message ID:
00858352
Vues:
12
Don't use General Fields to store binary files, use a field with full path to related file:

--- General aspects of image manipulation in VFP ---
http://www.utmag.com/September2002/Page27.asp

HTH.

>I have a manufacturing parts book application that needs to print pictures of parts assemblies in a Visual FoxPro report. This application will be installed by hundreds of end user customers and must work without any add-ons or additional costs for distribution.

>Currently the pictures are stored in a general field. What is very strange is the size to hold the pics in the table is many times larger (almost 100 times larger) than the space they take up on the disk.

>225 Jpeg pictures ranging from 6-10k each take up a total of 1.5 MB in my picture folder.

>The table holding the pictures however consumes 125 MB of hard drive space. Without the pictures in the table the table size drops to a miniscule 79K. Does anyone know what Visual FoxPro is doing underneath to ballon those picture sizes? Is there anyway to stop it?

>If the size were the only issue it wouldn't be so bad. The big problem is that printing anything is VERY slow. I assume the slow down is also related to the problem of Visual FoxPro dramatically increasing the size and the overhead in managing such large structures.

>I've looked into taking the pictures out of the general field and accessing them through the File... option in the report but I can't figure out a way to specify what the file is for each record in the report. I was thinking there maybe a way to hack the FRX to make the File... report option dynamic but that doesn't sound like an easy solution.

>Right now I'm only working on the 2003 version of the Parts Book. The application will soon have data from 1997-2004 which by rough calculations could put the table size over 1GB which is completely unacceptable for pictures that should consume no more than 10MB on the disk.


>Any ideas how to speed this up and shrink it back down or is this a solution that Visual Foxpro can't handle well and I need to look to an alternate development environment?
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform