[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.


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

2014-03-10 Thread Vinny P
On Mon, Mar 10, 2014 at 3:10 AM, hitesh jain  wrote:

> 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.
>
>

Generally what you'd want to do is retrieve the image via the URL Fetch
service, then write it into Google Cloud Storage:
https://developers.google.com/appengine/docs/java/storage#google_cloud_storage

>From there, if you need the file, you can serve it directly from Cloud
Storage or pipe it through App Engine for handling.



On Mon, Mar 10, 2014 at 3:10 AM, hitesh jain  wrote:

> 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")
>
>

The createUploadUrl route is for uploading files themselves, while above
you stated you were passing image URLs. If you want to upload the image
file (not the URL) then yes, use blobstore's createuploadurl form.


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
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.


Re: [google-appengine] How is MD5 hash of a blobstore blob encoded?

2014-03-10 Thread Vinny P
On Mon, Mar 10, 2014 at 6:27 AM, Stephan Hartmann 
 wrote:

> On the development server BlobInfo.getMd5Hash() returns a String (why not
> binary array?) that seems to be the hex endoded hash value. I can proof
> this true with hashing the file locally.
> However on Appengine getMd5Hash() returns something different.
> It seems to be Base64 encoded, but decoding it with Base64 does not match
> with what I get locally.
>


Can you try uploading an empty file to both your development environment
and production App Engine, and seeing what the MD5 hash for each comes out
to be?


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
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: 1.9.1 Pre-Release SDKs are now available.

2014-03-10 Thread husayt
Is that it?

What kind of release is this with no single fix/feature ?

:-( 

On Monday, 10 March 2014 18:19:08 UTC, Richmond Manzana wrote:
>
> We want to inform you that the pre-release SDKs for Python, PHP and Java 
> are now available.
>
> As previously 
> announced
>  in 
> a Google code site announcement, new App Engine Binaries are no longer 
> available at:
> http://code.google.com/p/googleappengine/downloads/list
>
> Older binaries will remain available at the code.google.com site.
>
> 1.9.1 Pre-release SDKs are now available at 
> https://developers.google.com/appengine/downloads#Google_App_Engine_Pre_Release_SDKs
>
> Also, please see the pre-release notes below.
>
> Python & PHP
> ==
> - The Performance Settings section of the Application settings page in the
>   Admin Console, Backends API and all backends related management tools 
> are now
>   deprecated and will be removed in a future release. Users of Backends are
>   recommended to migrate to the App Engine Modules API, which provides a 
> more
>   flexible implementation of the same functionality. These settings are 
> now all
>   configurable via Modules configuration files.
>   See the Modules documentation for more information:
>   https://developers.google.com/appengine/docs/python/modules/
> #Python_Configuration
>
> Java
> =
> - The Performance Settings section of the Application settings page in the 
>   Admin Console, Backends API and all backends related management tools 
> are now
>   deprecated and will be removed in a future release. Users of Backends are
>   recommended to migrate to the App Engine Modules API, which provides a 
> more
>   flexible implementation of the same functionality. These settings are 
> now all
>   configurable via Modules configuration files.
>   See the Modules documentation for more information:
>   
> https://developers.google.com/appengine/docs/java/modules/#Java_Configuration
>
> Cheers,
>
> Richmond Manzana
> Technical Program Manager
> Google App Engine
>
> App Engine SDK - Pre-Release Notes
>

-- 
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: 1.9.1 Pre-Release SDKs are now available.

2014-03-10 Thread Alexis
You speak about the whole "Performance Settings" section, but I bet that 
part of it will remain, like settings for "memcache service", and "page 
speed service".
Can you give more details just to make sure?


On Monday, March 10, 2014 7:19:08 PM UTC+1, Richmond Manzana wrote:
>
> We want to inform you that the pre-release SDKs for Python, PHP and Java 
> are now available.
>
> As previously 
> announced
>  in 
> a Google code site announcement, new App Engine Binaries are no longer 
> available at:
> http://code.google.com/p/googleappengine/downloads/list
>
> Older binaries will remain available at the code.google.com site.
>
> 1.9.1 Pre-release SDKs are now available at 
> https://developers.google.com/appengine/downloads#Google_App_Engine_Pre_Release_SDKs
>
> Also, please see the pre-release notes below.
>
> Python & PHP
> ==
> - The Performance Settings section of the Application settings page in the
>   Admin Console, Backends API and all backends related management tools 
> are now
>   deprecated and will be removed in a future release. Users of Backends are
>   recommended to migrate to the App Engine Modules API, which provides a 
> more
>   flexible implementation of the same functionality. These settings are 
> now all
>   configurable via Modules configuration files.
>   See the Modules documentation for more information:
>   https://developers.google.com/appengine/docs/python/modules/
> #Python_Configuration
>
> Java
> =
> - The Performance Settings section of the Application settings page in the 
>   Admin Console, Backends API and all backends related management tools 
> are now
>   deprecated and will be removed in a future release. Users of Backends are
>   recommended to migrate to the App Engine Modules API, which provides a 
> more
>   flexible implementation of the same functionality. These settings are 
> now all
>   configurable via Modules configuration files.
>   See the Modules documentation for more information:
>   
> https://developers.google.com/appengine/docs/java/modules/#Java_Configuration
>
> Cheers,
>
> Richmond Manzana
> Technical Program Manager
> Google App Engine
>
> App Engine SDK - Pre-Release Notes
>

-- 
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] 1.9.1 Pre-Release SDKs are now available.

2014-03-10 Thread Richmond Manzana
We want to inform you that the pre-release SDKs for Python, PHP and Java 
are now available.

As previously 
announced
 in 
a Google code site announcement, new App Engine Binaries are no longer 
available at:
http://code.google.com/p/googleappengine/downloads/list

Older binaries will remain available at the code.google.com site.

1.9.1 Pre-release SDKs are now available at 
https://developers.google.com/appengine/downloads#Google_App_Engine_Pre_Release_SDKs

Also, please see the pre-release notes below.

Python & PHP
==
- The Performance Settings section of the Application settings page in the
  Admin Console, Backends API and all backends related management tools are 
now
  deprecated and will be removed in a future release. Users of Backends are
  recommended to migrate to the App Engine Modules API, which provides a 
more
  flexible implementation of the same functionality. These settings are now 
all
  configurable via Modules configuration files.
  See the Modules documentation for more information:
  https://developers.google.com/appengine/docs/python/modules/
#Python_Configuration

Java
=
- The Performance Settings section of the Application settings page in the 
  Admin Console, Backends API and all backends related management tools are 
now
  deprecated and will be removed in a future release. Users of Backends are
  recommended to migrate to the App Engine Modules API, which provides a 
more
  flexible implementation of the same functionality. These settings are now 
all
  configurable via Modules configuration files.
  See the Modules documentation for more information:
  
https://developers.google.com/appengine/docs/java/modules/#Java_Configuration

Cheers,

Richmond Manzana
Technical Program Manager
Google App Engine

App Engine SDK - Pre-Release Notes

-- 
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] How is MD5 hash of a blobstore blob encoded?

2014-03-10 Thread Stephan Hartmann





Hi together,
 
On the development server BlobInfo.getMd5Hash() returns a String (why not binary array?) that seems to be the hex endoded hash value. I can proof this true with hashing the file locally.
However on Appengine getMd5Hash() returns something different.

It seems to be Base64 encoded, but decoding it with Base64 does not match with what I get locally.

Maybe it uses a different hashing algorithm, too?

Which encoding is used and why is it not consistent on development and production?


 
Any help appreciated.
 
Best regards,
Stephan



-- 
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] 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.