Intraweb for Rest API POST - Image file - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Intraweb for Rest API POST - Image file (/thread-2447.html) |
Intraweb for Rest API POST - Image file - brsoft - 07-06-2021 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 RE: Intraweb for Rest API POST - Image file - Alexandre Machado - 07-09-2021 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. RE: Intraweb for Rest API POST - Image file - brsoft - 07-09-2021 I modified the PostDataDemo application. Please help to receive the image file. Thanks. Regards Robert |