NetTalk Central

Author Topic: web service takes too long to process received image.  (Read 4770 times)

carlossm

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
web service takes too long to process received image.
« on: July 31, 2018, 09:41:47 AM »


Hi, I've got a web service running that receives images sent from the client. The web service was created with the wizard and the client was created from the web77 example. 
The image is transferred fairly fast, but once it?s received, it takes a log time to go into the insert record procedure. The images are base64 encoded.
I traced the code and there is one procedures that take a long time to replace characters. It?s this one:


p_setting = self._UnEscape(p_setting,p_Plus+Net:NoColon) ! ok to use because _unescape always reduces size.



Sometimes it takes up to 23 minutes to UnEscape a 3 MB file.



Thanks
« Last Edit: July 31, 2018, 06:03:06 PM by carlossm »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: web service takes too long to process received image.
« Reply #1 on: July 31, 2018, 10:20:47 PM »
Hi Vinnie,

that's clearly waaayy tooo slow.
can you maybe tweak the shipping example (server and client) to show the effect so I can duplicate here and see what's going on?

cheers
Bruce