automationapi.blogg.se

Convert octet stream to pdf
Convert octet stream to pdf











convert octet stream to pdf

Var path = SERVER_TEMP_PATH + "\\" + ().FileName Var response = new HttpClient().PostAsync("" + key, requestContent).Result įileReportResponse responseDeserialized = JsonConvert.DeserializeObject(().Result)

convert octet stream to pdf

RequestContent.Add(stream, "File", fileStream.Name) Var stream = new StreamContent(fileStream) Var fileStream = System.IO.File.OpenRead(fileName) Var requestContent = new MultipartFormDataContent() public string ConvertReportToPDF(string fileName)

#Convert octet stream to pdf pdf

Maybe this File Data needs to be processed to create a valid PDF file? if I just write that data in a file it does not work. The response that I get from Convert API is a JSON with the File Name, File Size and File Data. Not sure what I am doing wrong, maybe something about the encoding? With the old API version everything works good, but I'm trying to migrate to the new API version and when I open the PDF is not a valid document and it will not open. I'm using Convert API to convert docx to PDF.













Convert octet stream to pdf