Using GAE Blobstore API with Flex - java

I'm developing a Flex application that should run on Google App Engine. This app should be able to load larg-ish XML files (1 to 50MB) from GAE and save them again.
[UPDATE]
I'm using Java. The Flex app is already running on GAE - but can't yet load/save files. The Blobstore API documentation talks about using a multipart POST - how would I do this in Flex?

Which language are you using in GAE, java or python?
What is your problem? You don't know how to use the Blobstore API? Or you don't know how to use flex with GAE?
If you are using python Gae and do not have any idea about Gae with flex, you may have a look on the following:
http://aralbalkan.com/1333
http://fernandoacorreia.wordpress.com/2008/07/15/flex-and-python-project/
A little bite old, but very userful.
Update:
You can use the UploadPostHelper library to send the multipart/form-data in flex. Please refer to the following site to get the idea on how to use this library:
http://marstonstudio.com/2007/10/19/how-to-take-a-snapshot-of-a-flash-movie-and-automatically-upload-the-jpg-to-a-server-in-three-easy-steps/
Wish this can help.

you want to load a 50MB XML file to the client? Why?
I have a fast internet connection but still 50Mb is a lot...
You can use PyAMF: http://www.pyamf.org/tutorials/gateways/appengine.html

Related

Actions On Google Deployment using webhook

I am using Java Client Library to use google Dialogflow. My questions is what happens when we use "appEnginedeploy" using gradle? Where is the code stored and more importantly how the implemented database and other files of code stored and accessed by our agent?
Thanks!
appEngineDeploy is setup to deploy the code to App Engine, a computing platform on Google Cloud. Code and associated project files are stored as they are in your project.
It's not entirely a VM, so you shouldn't necessarily think of App Engine as locating filepaths. If the project can make the links locally, then it should behave the same way in App Engine.
With regards to databases, it would depend if you're using an embedded database or using a hosted solution through another Google Cloud service. Presumably you'd use the database APIs for a Cloud service as shown in the documentation.

Client based solution for upload entire folders to an Servlet

Im currently writing a web application, where a user should be able to select an folder and upload all of its content to an servlet.
The idea is, that a user can select a folder, the folder and its content will be sent due a post request to the servlet. The servlet takes them, parses the structure and saves the structure in a database. (Filenames , foldernames..etc) (Thats also why, i cannot pass the files directly to the ftp server).
Afterward the servlets connects to an FTP Server, where the files will be stored permanently.
The Web Application uses JavaEE (Apache Tomcat 7.0, Servlet 3.0 API)
Currently Im using JUpload to achieve this, but in fact I've read that it is highly advised against using Java Applets, because of security issues. Also JUpload is not intended to use with Servlet 3.0 API, but with a little hack it works.
A normal input file form is not sufficient for this need.
Now I'm wondering, because i didnt find any other solution, which can achieve this. I've heard about some Flash Solutions, but im not familiar with flash. And also Flash has some security issues, like Applets.
Is there any other solution to solve this ?

How to implement GCM in Google AppEngine?

I'm a PHP Developer and Web Designer. In my work a partner asked me if I could set up a Google Cloud Messaging server.
I read the documentation but couldn't find a clear tutorial to set up this server.
I got no knowleadge about Java so it makes my job harder. I could "compile" a war file using ant as GCM Demo Tutorial says. But I can't deploy it to my AppEngine server to try it out (It's my first time using AppEngine too).
Could you give me some steps to create my own GCM server?
Sorry about my bad english.
Thanks!
A easy way to import the gcm-server-demo to eclipse:
①Download a “Eclipse IDE for Java EE Developers”,and create a dynimic web project.
②Copy the ‘src’ and ‘webcontent’ from the gcm-server-demo to cover the web project.
③Add a server like tomcat or jetty to run the project.
And the registration id is sent by the Android application with a 'Post' request.
You can handle it with servlet or PHP

File upload using SOAP

I am trying to create a web application which will allow the user to upload a file. The file will be encrypted and transferred to a web service via SOAP. The web service will carry out simple operations such as 'storeFileToCloud(byte[])' and 'downloadFile(string)'.
So far, using Google App Engine, I have created the web services, however, I'm not sure how to encode the file using SOAP. I've also created the form for the user to upload his/her file, but I'm stuck on what to do after this. Any tips or guides will be extremely helpful.
The tools I'm using include Java, Google App Engine and Eclipse Indigo.
JAX-RPC uses xsd:base64Binary. See the JAX-RPC Spec, chapter 10. You could probably do worse than copying them. Be aware that the size of the data will expand by about 33%.

CMS external upload of files

I am looking for a java based CMS that exposes an API for external file upload.
So for instance I have a Tomcat server with a running CMS. I also have a (standalone) client that needs to add content to the CMS automatically (without user interference).
I already looked into Liferay (using Jackrabbit) but there is no way to upload documents/files from a client.
Does anyone know of a java CMS where this is possible ?
Thanks!
Coenos
If you are ready to take time in coding then you could make use of Liferay webservices to create a client yourself. Liferay exposes its core api as web service, using which you can do most of the things. To see the list of services that Liferay exposes check this url
http://localhost:8080/tunnel-web/axis
Replace localhost:8080 with yours.
To know more about this check out this wiki link
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Web+services+-+Manage+Users,+Organizations,+User+Groups,+and+Roles+via+SOAP

Categories