Reputation: 482
I have a C# desktop application that receives document data from a web service.
I tried loading the documents using:
Process.Start(new ProcessStartInfo(browserName, "data:application/pdf;base64, " + base64EncodedPDF));
however, this fails when the command line parameter exceeds the maximum allowable size.
Is there a workaround for this, one that doesn't require writing a file to the local system?
Upvotes: 1
Views: 61
Reputation: 1423
Per microsoft docs, the character limit is 8191 characters for starting a process.
Options I can think of in order of most practical to least:
Upvotes: 2