Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RENAME command may change file security attributes
Message
De
24/05/2006 13:52:12
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
01124594
Message ID:
01124621
Vues:
14
Hi Anatoliy

>I have found that RENAME command in the code above changes file security attributes, which makes the .Net Bitmap constructor fail.
>
>So I have switched to another code solving this issue. The code replaces the image's content without changing its security attributes:
>
>hFile = FOPEN(originalimage, 1)
>= FCHSIZE(hFile, 0)  && truncates the file
>= FWRITE(hFile, FILETOSTR(optimizedimage))
>= FCLOSE(hFile)
>
Very nice solution!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform