Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting image to binary data???
Message
De
03/12/2004 09:31:51
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
00966671
Message ID:
00966676
Vues:
8
To get data from the ClipBoard, see _cliptext. I am not sure if it works for images.

You can get data from files with FileToStr().

You can save the data in a memo binary field.

>Hi,
>
>Is there a way to convert an image stored in the clipboard into raw binary data (to be stored in a memo field)? For example, if I right click on a photograph on a web page and select "Copy", the photograph is stored to the clipboard in some kind of picture/image format (maybe bmp?). The stored clipboard image is not accessible as binary data at that point. I would like to convert the clipboard image back into its original binary data format, so that I can store it in a memo field. Is this possible?
>
>My ultimate goal is to store binary data of images, and be able to convert that data back into their original picture file formats (jpg, gif, bmp, etc.)at some later point.
>
>Also, is there some way to convert an image stored in a general field, back into it's original binary data?
>
>Dave
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform