Google Cloud Print using C#

后端 未结 4 586
滥情空心
滥情空心 2021-02-03 13:54

I try to use Google Cloud Print using C#. Internet has just one example, who wrote Josh Goebel. I will not publish the complete example, here is the only method that sends a fil

4条回答
  •  北海茫月
    2021-02-03 14:32

    Looks like the reason of the problem is encoding of the data you sent to the server. The most reliable solutions in this case would be to use data URI scheme when you send the document. To do that you need to set contentType to "dataUrl" and pass data in the following format: "data:application/pdf;base64," + Convert.ToBase64String(document)

提交回复
热议问题