thanks a lot for your reply. Actually i am a novice to GAE. I could not 
understand your reply very clearly. Is there a difference between 
"DataStore" and "Cloud DataStore " ? 

my requirement is that i need to retrieve an image ( for eg: profile photo 
of the logged in user) quickly at run-time. I learnt that this was possible 
by storing  the data in Datastore.  In the Datastore, I am able to store 
strings (for eg: username, address, etc)  using php remote api of the php 
app engine ( basically using the second link that you have sent ). 
Basically I have created an entity in the datastore and the entity has 
fields called "name", "address" ,etc which are of string datatype.  I was 
wondering if I could store the image of a user as well in the datastore by 
creating another field with suitable datatype for holding images and access 
the  images in the datastore with PHP remote APIs  ? Is such a thing 
possible ? It seems to be possible with python and java (but I have not 
actually tried it out ) but with php i could not find any solution.  

any help would be greatly appreciated. Thanks a lot again  ! 

Regards,
Rohith 

On Monday, August 18, 2014 10:18:25 PM UTC+5:30, barryhunter wrote:
>
> Well PHP runtime doesnt actully have direct access to the DataStore right 
> now :)
>
> Have to proxy it though say the Cloud Datastore. 
> https://developers.google.com/datastore/
>
> Which is then just an exercise in accessing a remote API. 
>
> https://gae-php-tips.appspot.com/2013/12/23/getting-started-with-the-cloud-datastore-on-php-app-engine/
>
>
>
> But frankly storing images in the datastore, is probably not the best 
> practice. 
>
> Using Google Cloud Storage would be better. 
> https://developers.google.com/appengine/docs/php/googlestorage/
>
>
>
>
>
> On 16 August 2014 10:26, Rohith D Vallam <[email protected] <javascript:>> 
> wrote:
>
>> Hello,
>>
>>  Is there some example code in PHP which will enable me to store / 
>> retrieve  images (jpg, png files) to / from the  google datastore ? I found 
>> example code for python(link: 
>> https://developers.google.com/appengine/articles/python/serving_dynamic_images
>> )  and java (link: 
>> https://developers.google.com/appengine/articles/java/serving_dynamic_images)
>>   but 
>> not for PHP. If someone has a working PHP code for storing / retrieving 
>> images to / from datastore , it would be great if you could share the code. 
>>
>> Thanks and Regards,
>> Rohith 
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/google-appengine.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to