08-17-2019, 01:26 AM
(08-16-2019, 09:57 PM)mark_talluto Wrote:Thanks Mark, working fine now.(08-16-2019, 08:30 PM)mark_talluto Wrote: This is the strangest thing. I think I have a fix to the problem. If it all goes well, I will push an update today.
The relevant code that has changed looks like this:
--NEW METHOD: COPY FILE
set the itemDel to slash
put slash & the last item of tOutput after tPath
revCopyFile tOutput, tPath
--OLD METHOD: COPY FILE
open file tOutput for binary read
read from file tOutput at 1 until EOF
put getFormat(it) into tFormat
put tPath & "/" & pBlobID & "." & toLower(tFormat) into tPath
put it into url("binfile:" & tPath)
The new method preserves the file size and passes along the meta data and color profile for the image.
Cheers!
To ";" or not to ";" that is the question