Error when using document data for IPP send Document Request

%3CLINGO-SUB%20id%3D%22lingo-sub-1723620%22%20slang%3D%22en-US%22%3EError%20when%20using%20document%20data%20for%20IPP%20send%20Document%20Request%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1723620%22%20slang%3D%22en-US%22%3E%3CP%3EAfter%20Register%20Printer%20with%20Universal%20Print%20Service%2C%20I%20build%20a%20IPP%20Proxy%20App%20as%20a%20connector%20to%20connect%20Output%20Device%20with%20Infrastructure%20Printer.%26nbsp%3B%3CBR%20%2F%3EAfter%20implement%20Fetch%20Document%20IPP%20Operation%20%2C%20UP%20Services%20response%20document%20data.%20But%20if%20I%20use%20this%20data%20to%20Send-Document%20Operation%20to%20Output%26nbsp%3B%20Device.%20This%20data%20is%20not%20type%20Buffer.%20It%20return%20type%20string.%3CBR%20%2F%3EI%20see%20Graph%20API%20have%20a%20api%20return%20same%20data.%20It%20shown%20below%26nbsp%3B%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fprintdocument-get-file%3Fview%3Dgraph-rest-beta%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fprintdocument-get-file%3Fview%3Dgraph-rest-beta%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1761023%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20using%20document%20data%20for%20IPP%20send%20Document%20Request%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1761023%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F621893%22%20target%3D%22_blank%22%3E%40hungnq39%3C%2FA%3E%26nbsp%3Bthe%20print%20payload%20is%20binary%20data%20of%20the%20remaining%20HTTP%20payload%20that%20immediately%20follows%20the%20document%20attributes.%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3CBR%20%2F%3EPlease%20see%20section%205.5.2%20of%20the%20IPP%20INFRA%20spec%3A%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Fftp.pwg.org%2Fpub%2Fpwg%2Fcandidates%2Fcs-ippinfra10-20150619-5100.18.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fftp.pwg.org%2Fpub%2Fpwg%2Fcandidates%2Fcs-ippinfra10-20150619-5100.18.pdf%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

After Register Printer with Universal Print Service, I build a IPP Proxy App as a connector to connect Output Device with Infrastructure Printer. 
After implement Fetch Document IPP Operation , UP Services response document data. But if I use this data to Send-Document Operation to Output  Device. This data is not type Buffer. It return type string.
I see Graph API have a api return same data. It shown below 
https://docs.microsoft.com/en-us/graph/api/printdocument-get-file?view=graph-rest-beta 

1 Reply

Hello @hungnq39 the print payload is binary data of the remaining HTTP payload that immediately follows the document attributes.    
Please see section 5.5.2 of the IPP INFRA spec: http://ftp.pwg.org/pub/pwg/candidates/cs-ippinfra10-20150619-5100.18.pdf.