Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with the photos
Message
De
03/02/2004 17:50:37
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00873510
Message ID:
00873669
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>I´m sorry my english is very poor and it is by which perhaps does not express to me correctly, you suggest to me does not use a general field and that presents/displays the photo through its direction in a field memo, but, although like putting the direction in this field not like (in which object image or another one) to present/display the photo in the screen, and so that property I rescue this direction in the object.

As an alternative, you could mark your memo NOCPTRANS, and store the image in it:

replace table.memo with filetostr("yourimage.jpg")

and then when you want to show it

strtofile(table.memo, "image.jpg")
thisform.image1.picture="image.jpg"

This way you would still have the images inside your table, but without the overhead of the General field. General field always stores a bitmap of the stored object, and in case of images, it means that you have a jpg/gif/png image AND a bmp in your general field - which is the main reason for the bloat. So it's much more practical to store the image in a binary memo, without this overhead.

Also, the general field will give you an error if there's no application at the user's end which is registered as an automation host for that type of object. If you uninstall Paintbrush, it won't show your image files anymore - but if you just use regular VFP's Image object, it will work.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform