Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Intraweb for Rest API POST - Image file
#1
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
Reply
#2
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.
Reply
#3
I modified the PostDataDemo application.

Please help to receive the image file.
Thanks.

Regards
Robert


Attached Files
.zip   postdatademo_brsoft.zip (Size: 116.48 KB / Downloads: 15)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)