I have ejb + JPA app on GF3 server and remote swing client. I want upload large files from client to server’s database over stateless session bean.
how to upload large binary data from remote swing client?
I have ejb + JPA app on GF3 server and remote swing client. I
Share
In Entity Bean, you can use Blob field type & annotate it by @Lob to persist such data directly into database.
//– Edit Part
For such a large file, you can fetch the file contents into byte array of fixed size such that client won’t run out of memory.
Client side:
Server side: