A
A
Alexander2016-12-15 16:35:52
1C-Bitrix
Alexander, 2016-12-15 16:35:52

How to store image path in DETAIL_PICTURE?

From 1C, when exchanging, product image files are saved to the upload / 1Cpicture / folder, the name of the images is formed based on the xml_id of the product. It is necessary to write the path to the image file into the value of the ["DETAIL_PICTURE"] parameter, while not re-saving the image to another folder, but to save the path to the image.
I looked at the CFile::MakeFileArray method, I realized that it resaves the image file itself, but you only need to save the path to the image in the upload/1Cpicture/ folder so that the file itself is not resaved and its name does not change. How can I do that?
Do I need to register a file in the system before getting the path to it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2016-12-15
@gangstarcj

You can't do that, and why? crazy idea

X
x0139, 2017-02-17
@x0139

And here is not a crazy idea - I ran into the same situation.
I already have pictures, almost 8GB.
Resaving them in the Bitrix model is a crazy idea.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question