About saving binaries
Mike Matthews - Omnis
omnis at lineal.co.uk
Mon Apr 25 07:25:58 UTC 2022
Hello Das,
We save as binary, and then write it back as you suggest. The icon and file type are driven by the file extension, so all will work just fine.
Mike Matthews
Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
www.lineal.co.uk<http://www.lineal.co.uk/>
www.sqlworks.co.uk<http://www.sqlworks.co/>
On 22 Apr 2022, at 23:02, Das Goravani <goravanis at gmail.com<mailto:goravanis at gmail.com>> wrote:
This is about saving binaries. There are a few ways to ask this question so read on because the latter might appeal to you.
I am hoping to save attachments from a mime list to a workable binary copy of the original file.
Said another way, if you have the binary data for a file, can you write that into an Omnis export file and thus recreate the original file in a new location?
You see I’m not sure what binary data includes. Like I’m thinking about the icon of the file.. will that be re created so that it shows with the correct icon?
I’m thinking that to create the file, I would use
Prompt for print or export file
Then do
WriteBinFile (cPath,BinaryDataField)
But those are the old way. Is there a newer better way to do it now?
On Mac for example, does doing the above, writing out the binary data, recreate the file and the icon?
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list