1. Julián Tagarro
  2. PowerBuilder
  3. Friday, 26 January 2018 16:31 PM UTC

I kind of solve the case regarding this thread >> https://community.appeon.com/index.php/qna/q-a/upload-files-to-a-web-service

The solution I found was to split the file in parts of 1MB (Byte array supports this number of rows). Then, this parts are sent to the Web Service and then it puts all them together again.

In the client

err = f_read_file ( "test.zip" , lbyte_part_1[] , lbyte_part_2[] , lbyte_part_3[] ) 

In the WS

lbl_file = abl_part_1

If Len ( abl_part_2 ) <> 0 Then lbl_file += abl_part_2

If Len ( abl_part_3 ) <> 0 Then lbl_file += abl_part_3

err = f_write_file ( "receive.zip" , lbl_file ) 

I just wanted to share it.

Regards

_________________

Julián Tagarro

NeoSistemas SRL

Patrick Sohr Accepted Answer Pending Moderation
  1. Monday, 29 January 2018 09:17 AM UTC
  2. PowerBuilder
  3. # 1

oh i don't saw this post ... I just posted an answer to your old question ... so if you are still interested in other options for bigger files have a look there :)

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 26 January 2018 20:53 PM UTC
  2. PowerBuilder
  3. # 2

Hi Julián;

  Thanks for the great tip!   yes

Looks like another approach of what I call "data chunking" when I did this to solve uploading super large DB Blob column data. How did this approach change the web service upload performance when compared to smaller files that you were able to directly upload before changing your code?

Regards ... Chris

Comment
  1. Julián Tagarro
  2. Sunday, 28 January 2018 16:22 PM UTC
Hi Chris,



Well at the moment all tests are performed inside our LAN. The next step is to test it in a real scenario. I will let you know.



Regards



________________



Julián Tagarro



NeoSistemas SRL

  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.