Highlighted
Contributor.
Contributor.
405 views

How to add content-type :application/octet-stream file content in LR 12.53

The REST call is creating the page but the content is not getting added. The page goes blank.

Please find attached the call details

web_rest("POST: Add content to Page",
        "URL=https://host:port/integrationserver/v1/document/{c_DocumentID}/page",
        "Method=POST",
        "EncType=raw",
        "Snapshot=t852866.inf",
        HEADERS,
        "Name=X-IntegrationServer-Resource-Name:", "Value=data.TIF", ENDHEADER,
        "Name=x-integrationserver-session-hash:", "Value={SessionID}", ENDHEADER,
        "Name=Content-Type", "Value=application/octet-stream", ENDHEADER,
        LAST);

0 Likes
2 Replies
Highlighted
Regular Contributor.
Regular Contributor.

Re: How to add content-type :application/octet-stream file content in LR 12.53

web_add_header(name, value)

0 Likes
Highlighted
Contributor.
Contributor.

Re: How to add content-type :application/octet-stream file content in LR 12.53

My question was i am able to add header and create the page, but I want to add a file content to the page using application/octastream type(.tif)

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.