Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Image files.
Message
From
22/05/1998 16:35:29
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/05/1998 02:28:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00101060
Message ID:
00101304
Views:
26
>I am storing my images in the memo field in a normal table. Now the size of my FPT file has gone to 1.8 GB already. so this is what is worrying me. I was just thinking of a way out where by I can just store the reference to the particular image file in my table and not store the whole image in the memo field. because now the data is just around 50% and if it goes on like this I might end up with my FPT file to be around 3.5 GB which would be a problem.

If your images aren't compressed (i.e. they're .bmp files), why not compress them before storing? You can use ZLib for that, and simply keep only the image's filename along (if the name changes at all). This way you don't have to wait for long directory searches to find your image, and your memo file should be reasonably shorter. Of course, you'd have to decompress the image before showing it, and delete the file when you don't need it, but if you use the same filename everytime, you don't have to do that, either.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform