File Data

You can also include file data in your records. To do this, wherever a field is of the 'File' type, enter in JSON such as this:

In JSON format the request would be something like:

PDFFile: { "fileName": "test.pdf", "contentType": "application/pdf", "fileData": "**F**" } 

In this example, test.pdf would be the name of the file to insert, application/pdf should be changed to the HTTP content type of the data, and **F** should be the base-64-encoded data of the file.

To retrieve file data, you should use the getfile.aspx page. This is a special page that downloads file attachments. It takes two parameters: path, which should be the XPath (URI encoded) to the record, and field which should hold the fieldname where the attachment is stored.


Next Topic:
v4.2.0.956 (beta)
Up Since 2/29/2024 12:02:23 AM