|
<< Click to Display Table of Contents >> Navigation: Forum > Intraweb for Rest API POST - Image file |
07-06-2021, 10:33 AM:
Hi Alexandre!
PostDataDemo works well with xml and json files.
However, I could not resolve the transfer of image files (jpg).
The error is caused by aRequest.Files.Count = 0
I tried to set the Content-Type (client sent it the same way):
- RegisterContentType('image/jpeg');
- RegisterContentType('application/octet-stream');
Other server applications can receive images from this client application.
Can you help?
Thanks.
Regards
Robert
07-09-2021, 02:02 AM:
I'll need a simple test case for this.
I've already test this dozens of times with different content types and it works every time. Only this week I tested this twice for 2 different customers and it worked fine.
07-09-2021, 08:12 AM:
I modified the PostDataDemo application.
Please help to receive the image file.
Thanks.
Regards
Robert