[google-appengine] upload image into google app engine

2014-03-10 Thread hitesh jain
Hi,

I am making an restful call to my application which is deployed in google 
app engine. I pass in the image url to the http request. I want to fetch 
the image content from the URL and store the byte data into appengine. To 
fetch the image data I can use 

URLFetchService. 

To store the image data which can be more than 1 mb what is the best way to do 
that? In this datastore entity I think I can 
store only 1MB byte array.
Once image is stored then I want to get the url of that image so that it can be 
accessed later on anytime.

I have seen google blob store service but that expects HttpRequest as input 
parameter and I will have to use the 
httpclient api to create a POST request and submit to the upload url as 
generated blobstoreService.createUploadUrl(/upload)

Is there any other better way to do this?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: upload image into google app engine

2014-03-10 Thread hitesh jain
I forgot to mention, I am looking for free solution , Google cloud storage 
is paid one from single byte storage. What if I use deprecated File API to 
deal with blob store.

On Monday, March 10, 2014 1:40:09 PM UTC+5:30, hitesh jain wrote:

 Hi,

 I am making an restful call to my application which is deployed in google 
 app engine. I pass in the image url to the http request. I want to fetch 
 the image content from the URL and store the byte data into appengine. To 
 fetch the image data I can use 

 URLFetchService. 

 To store the image data which can be more than 1 mb what is the best way to 
 do that? In this datastore entity I think I can 
 store only 1MB byte array.
 Once image is stored then I want to get the url of that image so that it can 
 be accessed later on anytime.

 I have seen google blob store service but that expects HttpRequest as input 
 parameter and I will have to use the 
 httpclient api to create a POST request and submit to the upload url as 
 generated blobstoreService.createUploadUrl(/upload)

 Is there any other better way to do this?



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Not able to create config file using appcfg.py

2013-12-05 Thread hitesh jain
I am developing a app engine app in java and want to upload some data into 
the datastore using the python tool. I am very new to python and I 
installed python 2.7 and google app engine sdk for python by following 
instruction at 
https://developers.google.com/appengine/docs/python/#Python_Selecting_the_Python_runtime
 

My dev env is on windows and I added C:\Program 
Files\Google\google_appengine to the windows path variable.

Now when I run this command to generate config file to upload the data :
appcfg.py --url=http://appid.com/remote_api --application=appid -v 
--filename=config.yml create_bulkloader_config

 It always return me help instruction as follows :

C:\Documents and Settings\adminappcfg.py 
--url=http://appid.appspot.com/remote_api --application=appid -v 
--filename=config.yml create_bulkloade
r_config
Usage: appcfg.py [options] action

Action must be one of:
  backends: Perform a backend action.
  backends configure: Reconfigure a backend without stopping it.
  backends delete: Delete a backend.
  backends list: List all backends configured for the app.
  backends rollback: Roll back an update of a backend.
  backends start: Start a backend.
  backends stop: Stop a backend.
  backends update: Update one or more backends.
  create_bulkloader_config: Create a bulkloader.yaml from a running 
application.
  cron_info: Display information about cron jobs.
  delete_version: Delete the specified version for an app.
.
--

I am almost stuck on this and not able to fugure out where I am doing 
mistake. Please help me.

thanks,
hitesh

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] unable to upload data using appcfg.py for java app

2013-12-05 Thread hitesh jain
I have developed app engine app in java and enable remote api handler for 
it.

This is the first time I am using python to upload data to datastore.

I have installed python and python sdk as mentioned here 
https://developers.google.com/appengine/docs/python/#Python_Selecting_the_Python_runtime

I have added python sdk into windoes path.

When I run this command to create config file for upload 

appcfg.py --url=http://appid.appspot.com/remote_api --application=appid 
-v --filename=config.yml create_bulkloader_config


I always get this help text for command:

C:\Documents and Settings\adminappcfg.py --url=
http://appid.appspot.com/remote_apihttp://grevocav.appspot.com/remote_api--application=appid
 -v --filename=config.yml create_bulkloade
r_config
Usage: appcfg.py [options] action

Action must be one of:
  backends: Perform a backend action.
  backends configure: Reconfigure a backend without stopping it.
  backends delete: Delete a backend.
  backends list: List all backends configured for the app.
  backends rollback: Roll back an update of a backend.
  backends start: Start a backend.
  backends stop: Stop a backend.
  backends update: Update one or more backends.

What is wrong I am doing and I am stuck on this. Please help me.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.