Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The blob that ate my image...
Message
De
07/03/2006 07:08:32
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/03/2006 17:28:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01101777
Message ID:
01102010
Vues:
23
>Cetin:
>
>I set paintbrush as the default viewer, created an BMP image on the machine that it's installed on, and still the same. This is going to be a big problem for me because some of my customers have 1000's of images in a table and making them separate files is really not an option. Do you know what brought this on?
>
>Luke

Lucien,
You don't need to make them separate files on disk, but at runtime they would be. If say those were icon files which are generally 737 bytes than 1000 would be roughly a single 737K file. At runtime you could extract subpart of that file on to disk and use (or create an exe/dll and use).
However thinking they are dynamic files and should be saved per say person (ie: pictures) then still what you need is memo (binary). I have a class that handles it and here is how it works roughly (and when I have time I'll try to post class' code itself):
-To view it writes memo content out to disk in temp folder and sets image's picture property.
-When record changes it deletes the file in temp folder (and writes current one)
-For a new file it shows setting the image property again and saves copying to memo.
Basically there is a write and read operation vs a single read if it were on the disk already but it's fast for my needs and works transparently as long as the image files are not huge (I prefer gif and jpg).
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform