Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RENAME command may change file security attributes
Message
From
24/05/2006 13:52:12
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
01124594
Message ID:
01124621
Views:
9
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform