Atozed Forums

Full Version: Intraweb for Rest API POST - Image file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
I modified the PostDataDemo application.

Please help to receive the image file.
Thanks.

Regards
Robert