word 2 html conversion inside Google App Engine - google-app-engine

is there any way for a google app engine app to convert a user uploaded docx file to html?

I think the question is really; How can I convert a word document to HTML using Java/Python. and has little to do with google-app-engine itself.
This has been addressed on SO already for Python and for Java
One possible solution would be to use the Google Apps Document List API to send your file to Google Docs and then retrieve it in another format.

Related

Best approach to use a CDN service

I am a mobile developer trying to do backend development. It is going more or less well but still having doubts about some subjects. Currently I want to add a Google app engine service to upload and resizing images on Google Storage. Now I am trying to define the best way to upload it because image is just a part of the object form data.
Option 1: I know I can use Javascript to send two different forms (one for the data to my own controller and the other one for image to the app engine service) pointing to different processing URIs and create a random string to use as a link between image and data (because after uploading successfully on Google Storage I need to write the URL on my object data.
Option 2: Upload everything in one form just with my service and store temporally the image locally and send it on background calling app engine from my controller.
Option 3: Storing everything like now and use a background task to send image to app engine and the replacing the image by the returned URI.
No one of this options convinces me, please if some of you faced this before, enlighten me.
Regards,

Trying to upload a file into google app engine using Blob

I am trying to upload the file into google app engine from where I would like to retrieve it and then perform conversion into a pdf file. I want to have a cloud access so I am deploying this project. But I dont the best way to go about it. Can anyone help please ? Or is there any solution to directly convert the file while being on the server ?
I don't think there are any ways to convert a file directly on the server. But to store and retrieve, you might want to take a look into the Google Cloud Storage client library (and the one from Python, if needed).
These might help as well (Java and Python). From there you can easily save a file, then retrieve it. Once you retrieve it, do your conversion to pdf and voila!

Using SoundManager2 to create a non downloadable playlist

Currently I am trying to develop a Music streaming service: using SoundManager2 for streaming. I am using Google App engine to do the same. Music files are stored in Google Cloud Storage Buckets.
After completion of each song I would do an ajax query to fetch the url of the next playable song.
But while doing so I expose the direct URL to the .mp3 file and I am able to download the same thorough the URL (with a little help from Chrome Developers Tool).
How can we stop the song from getting downloaded or do some thing like SoundCloud where the URL is not getting identified in Developers tool?

Store Images in datastore from local drive in Google App Engine

I couldn't find articles match to my requirements.
Basically, what I want is that:
User uploads picture to the application from their local drive.
Application stores the picture uploaded to datastore.
Application retrieves images from datastore.
Any suggestions? Urgent.
That's exactly what is discussed in the documentation for the BlobStore API.
You can do this in much the same way as you would in any other framework or platform: Create an HTML form with a 'file' input and the mimetype set to 'multipart/form-data'. On the server side, extract the file data from the form field (using self.request.POST['fieldname'].value in webapp) and store the contents in a datastore model, in a db.BlobProperty field.

How to process gdoc spreadsheet in the Google App Engine?

I have a app on the GAE. And need save entries of spreadsheet which is located in the Google docs to database. I assume that StringIO, xlrd, gdata-api can help to implement it. But it seems that the method gd_client.Export of gdata-api is not provided file parameter. Only provide file_path argument. Unfortunately the App can't create a file on the GAE.
Do you know that how to save the spreadsheet to GAE's database?

Resources