Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Icon Stored In General Field - copy to .ico file how?
Message
From
13/06/2003 09:04:31
 
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00799601
Message ID:
00799737
Views:
21
Hi David,

The problem is that this table is also used in an FPD26 app so it is a free fox2x table. The goal is to store an icon in the table so it can be copied from the table to a directory on the user's system only when they need it for a specific function in a third party app (it is part of a bridge). The table will never hold more than 10 or so records which we can redistribute when the icon changes (doubtful it ever will) or any of the values in the other fields change (possibility). This icon storage and copying of the icon portion from the table to the user's hard drive is the only part that's holding me up...

>Tracy,
>
>IMHO you should more simply use a binary memo instead of a general field.
>
>create table memotest ( mFile m nocptrans )
>append blank
>replace mfile with filetostr( getfile() )
>strtofile( mFile, "copied.gif" )
>
>
>>I've been testing a few code examples I found on the UT for copying bmp files from a general field to an actual file, however, while they seem to work with .bmp files, I cannot get it to work with an icon file. It creates a file, but windows does not recognize it as an icon file and the file opens up empty or blank in windows image editor, picture editor, paint, etc. I have a table named 'bridges' with a general field named 'icon' which stores an actual icon file, not a link. My goal is to copy the icon file stored in the general field to a specific path and filename.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform