In my ASP.NET project, I am looking to send a POST request to a third-party service for document editing (Zoho). While I have experience with making such requests using front-end forms and VB.NET in the code-behind, integrating both becomes tricky due to the file being stored as a byte array in the database and the need to display the POST results in a specific target (new window or iframe).
Essentially, I aim to incorporate the content of this byte array
Dim fileContents() As Byte = Files.get(fileId)
into a file input field within a form like this
<form id="theForm" action="http://zohoservice" method="POST" target="_blank" >
...
<input type="file" name="fileContents" />
</form>
and then trigger submission via javascript as follows
theForm.submit();
I appreciate any guidance on achieving this. Thank you!