SOLVED

How to upload document data via POSTMAN?

%3CLINGO-SUB%20id%3D%22lingo-sub-1504299%22%20slang%3D%22de-DE%22%3EHow%20to%20upload%20document%20data%20via%20POSTMAN%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1504299%22%20slang%3D%22de-DE%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20am%20prototyping%20with%20universal%20printing%20for%20a%20Dynamics%20365%20warehouse%20label%20printing%20solution.%3C%2FP%3E%3CP%3EI%20am%20struggeling%20to%20upload%20my%20document%20to%20a%20print%20job%20via%20POSTMAN.%3C%2FP%3E%3CP%3EThe%20%22binary%22%20function%20with%20a%20pdf%20returns%20%22bad%20request%22.%3C%2FP%3E%3CP%3EHow%20can%20I%20upload%20a%20document%20correctly%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EStefan%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22body.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F203255i8030E57A700AD7D1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22body.png%22%20alt%3D%22body.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22headers.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F203256iBA3EA5F64AF17CED%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22headers.png%22%20alt%3D%22headers.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1538040%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20upload%20document%20data%20via%20POSTMAN%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1538040%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20in%20case%20somebody%20run%20into%20the%20same.%3C%2FP%3E%3CP%3EThe%20content-type%20must%20be%20set%20to%20%22%3CSPAN%3Eapplication%2Foctet-stream%3C%2FSPAN%3E%22%20not%20%22%3CSPAN%3Eapplication%2Fjson%22.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello,

 

i am prototyping with universal printing for a Dynamics 365 warehouse label printing solution.

I am struggeling to upload my document to a print job via POSTMAN.

Die "binary" function with an pdf returns "bad request".

How can I upload an document correctly?

 

Thanks,

Stefan

body.png

 

headers.png

 

 

1 Reply
Best Response confirmed by SKrieger (New Contributor)
Solution

Just in case somebody run into the same.

The content-type must be set to "application/octet-stream" not "application/json".