简体   繁体   中英

How to upload a file by using javaGUI(java application) to google app engine

I need a help with upload a file to google storage(blobstore or google cloud storage), and i already did that send a message to server and then the server will response the message back. There are the code i alredy did a little bit below, could anyone help me how to upload a file to clound storage by using java application.

I dont use jsp or html as a upload interface, i design a simple javaGUI to upload a file when click a upload button.

I can not find any reference online, most of cases used jsp, html or php as a interface to upload a file.

i had some problem with code posted, so i put my code in the dropbox.

Server side: enter link description here

Client side: enter link description here

First of all you will have to complete the fully functional example that actually works for uploading files on Blobstore or Google Cloud Storage. No matter what are you going to use for uploading stuff, this is a must thing to do to verify that the backend part works and the part that is done in JSP will be your testing environment for making sure that the backend works before implementing anything else.

Once this is done then all you have to do from your JavaGUI app is to make sure that you know how to upload files using the the multipart file upload POST request.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM