Binary Data File

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Apr 10, 2020
Company: HerSüreçYazılım

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);

 
#2
People who like this:0Yes/0No
Administrator
Rating: 13
Joined: Oct 3, 2019
Company:

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.

Try it like this:

Code
TempFileName = GetTempFileName();
BinaryData = SelectionDetailRecords.ref.HSY_Resim1.Get();
BinaryData.Write(TempFileName);

 
Subscribe
Be the first to know tips & trick on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.