B4J Question Large file upload

wl

Well-Known Member
Licensed User
Longtime User
Hi,

I would like to be able to upload large files (such as movies of a few GB's) from one PC to a server using a B4J app on both sides.

What would be the best approach to do this ? I would guess through a network stream ? Any examples ?

Thanks
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
There are several methods. Unfortunately the best approach is http but it will not give you feedback on the process

I use ssh

This one will give you the bytes already uploaded so you can know how much is missing. Afaik ftp does the same.

The downside is that is in the OS level. So you will have to thighten your security a notch.
 
  • Like
Reactions: wl
Upvote 0

wl

Well-Known Member
Licensed User
Longtime User
Unfortunately SSH is not an option, since there need pre-communication between server and client on which file(s) to upload etc (part of a sync application).

Not receiving feedback is not a big issue (I think), but I am afraid to take an approach where a very large file needs to be put in memory (as is with a HTTP(s) POST I believe ?)
 
Upvote 0
Top