2. PowerBuilder
  3. Monday, 9 October 2017 08:13 AM UTC

In my mobile application the upload of image to the server takes place successfully but the download fails. Using AppeonFileservice function of_appeonupload and of_appeondownload. The log file shows "download failed. File is half-baked". The same file was uploaded successfully. What could be the reason? Please help.



Marco Meoni Accepted Answer Pending Moderation
  1. Sunday, 20 January 2019 21:48 PM UTC
  2. PowerBuilder
  3. # 1


since I just happened to experience same error, and this thread is not solved yet, it is worth to mention how I fixed it.

It occurs when specify 


as destination dir for

appeonfileservice.of_appeonupload (string source, string destination , boolean isrename, ref long errorcode)

From Appeon help in fact, it is 

"The destination directory on the file server where the file is uploaded.The directory specified here is a relative path to the file directory specified in the appeonfileserver.xml configuration file."

I thought that destination "." could be just fine for root dir on the server. The file is uploaded, indeed it is viewable on the server, but its later download fails in "half-backed" error.

Then I changed destination dir from "." to empty string "" (credits to ZhaoKai), precisely from

appeonfileservice.of_appeonupload(is_filename, ".", False, il_rc) 


appeonfileservice.of_appeonupload(is_filename, "", False, il_rc) 

and the subsequent of_appeondownload is working!




There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 9 October 2017 13:52 PM UTC
  2. PowerBuilder
  3. # 2

Hi DK;

  Can you tell us ...

  1. What location are you trying to download the image file to?
  2. What PowerServer version are you using?
  3. What mobile device are you using?
  4. What mobile O/S & version is involved?

Regards ... Chris

  2. Monday, 9 October 2017 15:06 PM UTC
Hi Chris

As desired...

1. Not giving any destination location. Think it will go to the default plugin directory.

2. PowerServer Mobile (PB Edition) 2017 Build 1666.00.

3. Samsung A7

4. Android 6.0.1

Thanks & Regards.



  1. Helpful
  1. Govinda Lopez @Appeon
  2. Friday, 9 February 2018 19:27 PM UTC
Hi DK Batra,


Can you try updating your PowerServer Mobile to the latest 1689 build? You can find the download links in your User Center in https://www.Appeon.com.



  1. Helpful
There are no comments made yet.
  • Page :
  • 1

There are no replies made for this question yet.
However, you are not allowed to reply to this question.