Dear Ertuğrul,
it's simple. The 1C process does not have rights to access the directory: C:\Program Files(x86)\1cv8\common\ - that's why this error occurs.
Please try it like this:
| Code |
|---|
TempFileName = GetTempFileName(); BinaryData = SelectionDetailRecords.ref.HSY_Resim1.Get(); BinaryData.Write(TempFileName); |

