Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving / Writing Image as a Blob
Message
De
26/03/2012 11:49:38
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01539374
Message ID:
01539375
Vues:
72
>I need to save a thumbnail of a page and then write it back out later. This code seems to work just fine but I thought I would run it past the brains here to make sure it's the best way and that I won't run into any problems.
>Thanks folks.
>
create cursor c_test (thumbnail W)
>m.Thumbnail = FileToStr('noimage.jpg')
>insert into c_test from memvar
>* brow
>=StrToFile(c_test.thumbnail, 'btest.jpg')
Unless you need the memvar, you can also do like this
Insert into c_test (thumbnail) values (filetostr('noimage.jpg'))
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform