Not a problem. I can’t even begin to tell
you how much this has helped me. I am
working on a project that I wanted to use
base64 on instead of accessing a line tool
command and as you can see I was having
problems. Your code fixed it and now I do
not need to use the command line.
John Balgenort
Glad that worked out.
Apologies for the typo; I was on an experimental system with all manner
of oddities to contend with ( beyond my normal bad spelling ),
--
Richard Gaskin
Fourth World Systems
Software Design and Development for Desktop, Mobile, and Web
_
I just did a compare of both files and
there was nothing different at all.
Then your answer included a better
file open and write which included
url and special folder path.
Thank you very much for the help
Not to be mean but my initials are actually
JB not BJ. I know I made a lot of mistake
BJ wrote:
> Are you able to use the code to pack and unpack
> a image and write it to disk?
Running this code here and selecting a JPEG file it seems to work well:
on mouseUp
answer file "Select a file:"
if it is empty then exit to top
put url ("binfile:"& it ) into tData
put fwPack
Thanks for the quick response and info.
I am using this code to write the file
open file filePath for binary write
put fld id 1004 into theData
write theData to file filePath
and it writes the data properly if all
I do is base64encode/decode. When
the encoded data is altered and the
JB wrote:
I was testing base64 and the Pack function
written by Richard Gaskin and after packing
and unpacking the data appears the same
but does not properly write to a file.
For instance I have a image that I read as a binary
and put the info in a field. Then I base64Encode it
and put the dat
I was testing base64 and the Pack function
written by Richard Gaskin and after packing
and unpacking the data appears the same
but does not properly write to a file.
For instance I have a image that I read as a binary
and put the info in a field. Then I base64Encode it
and put the date into a fie