google-photos

Unable to produce image from base64 in nodjs

我的梦境 提交于 2019-12-13 07:45:45
问题 This is byte array response I am getting from google api contact-photo: console.log('byteArray: ', res1.body); ����JFIF��``"����? !1AQaq2B���"#RT����br��3����������0 !1A2Qaq�"��BRS����� ?���Kѐ�V��,���fu0�AկQ�w���y� x��i�|��F?���;҆�X����������(+:s��iud���c�Gf�e7�jI�;N�d�%�f����+�Uh4q;Ĭ!9ȨD��[��5�ކ�;h��gCt�͌��و1J��q�a��S��^�V��R�����U��K6�<��"�U��~"u�|Q ڵ��G���;}�ђ׊��<���sX���>j���hk���~+�^����3�q4��P؝�oZ������4��P{O-j�]�d�c��pG��<7��Q������zd{n��|�`�mɊ��SN�D����}�Hv��0PY�<\�#�T�k!0�R(�Um�n��e�

Can't edit image in Google Photos after “Upload to Photos” activity

南笙酒味 提交于 2019-12-13 02:27:48
问题 My Android app ultimately has a selection of images stored locally, and then shares those using final Intent shareIntent = new Intent(); shareIntent.setAction(Intent.ACTION_SEND_MULTIPLE); shareIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, imageUris); shareIntent.setType("image/*"); context.startActivity(Intent.createChooser(shareIntent, "Share images to..")); One option is to "Upload to Photos", which works perfectly. However, when then viewing the image in Google Photos, editing

Moving from Picasa to Google Photos

回眸只為那壹抹淺笑 提交于 2019-12-11 12:47:52
问题 I was using Picasa to store my pictures and I used the api to retrieve them in my application. Now Picasa is moving to Google Photos. Every where I looked, it seems that Google Photos is using the same api as Picasa. Am I correct in assuming that this means I don't have to do any changes to my application? Will my application still display the correct images? Additional quetsion: I created a new account on Google Photos and created some albums. Now I tried to connect to the Google Photos page

Accessing shared albums from Google Photos

余生长醉 提交于 2019-12-11 05:02:19
问题 I already read the API documentation of Picasa. I can see the normal albums, but not the shared ones. The documentation says: If you are logged in as the owner of the content, you can retrieve all of the photos you've uploaded and albums you've created in Google Photos and Picasa Web Albums via the Picasa Web Albums Data API. There are some exceptions. For example, Google Photos "Shared Albums" are not available via this API . There are no plans to add support for all Google Photos features

Q: Google Photos Library API - I don't know how it works, someone?

心不动则不痛 提交于 2019-12-10 12:19:32
问题 I'm trying to load an album from Google Photos via javascript but I don't understand how the api works, I started reading Google Photos API but no luck. Is there a code reference that I can follow to get a list of the photos of my album? I found this but doesn't work <script> var scopeApi = ['https://www.googleapis.com/auth/photoslibrary', 'https://www.googleapis.com/auth/photoslibrary.readonly', 'https://www.googleapis.com/auth/photoslibrary.readonly.appcreateddata']; function

Retrieve Image from google photos library after dowloading

两盒软妹~` 提交于 2019-12-10 01:07:15
问题 I am launching an intent to get photos from gallery and when I am using nexus google photo app in my gallery everything works fine. But if the image is not on the phone (on the Google Photos online service) it will download it for me. After selecting the image I am sending the image to another activity for cropping but in case of download the image sent to the crop activity is null since the download is not finished yet. How can I know when the download is finished to send the image to the

Google Photos API - authentication

耗尽温柔 提交于 2019-12-06 16:25:32
问题 I'm trying to get list of my shared albums from Google Photos. I found a enable Photos API in Google Developers Console. HTTP GET: https://content-photoslibrary.googleapis.com/v1/sharedAlbums?key=AIzaSyCkXXXXXXXXXXXXXZiOSe9IiyM8E RESULT: { "error": { "code": 401, "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",

What format does the Google Places Photos API return the image in?

你说的曾经没有我的故事 提交于 2019-12-06 01:04:59
Have a look at this API: https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=CnRtAAAATLZNl354RwP_9UKbQ_5Psy40texXePv4oAlgP4qNEkdIrkyse7rPXYGd9D_Uj1rVsQdWT4oRz4QrYAJNpFX7rzqqMlZw2h2E2y5IKMUZ7ouD_SlcHxYq1yL4KbKUv3qtWgTK0A6QbGh87GB3sscrHRIQiG2RrmU_jF4tENr9wGS_YxoUSSDrYjWmrNfeEHSGSc3FyhNLlBU&key=AddYourOwnKeyHere When you invoke it using Postman, or in a browser, it returns an image which is rendered beautifully. Now, from inside an app, when I use $http or jQuery to call this API, what is returned is LOTS of "garbage". Can anyone explain what this garbage is? Is it base64

Uploading photo to Google Photos API not returning upload token

六眼飞鱼酱① 提交于 2019-12-05 06:03:01
I'm using the 2018 version of the Google Photos API to upload images and media as documented here: " Uploading Bytes " When I upload a new image or video I never get an upload token in the body of the response. It's always an empty body, which according to the above link means that the bytes have already been uploaded (but this is a new upload). Here's an example request/response: request: POST https://photoslibrary.googleapis.com/v1/uploads request headers: authorization: Bearer abcd1234 X-Goog-Upload-Protocol: raw X-Goog-Upload-File-Name: 20140317T082917_001.jpg content-type: application

Retrieve Image from google photos library after dowloading

风格不统一 提交于 2019-12-04 23:46:39
I am launching an intent to get photos from gallery and when I am using nexus google photo app in my gallery everything works fine. But if the image is not on the phone (on the Google Photos online service) it will download it for me. After selecting the image I am sending the image to another activity for cropping but in case of download the image sent to the crop activity is null since the download is not finished yet. How can I know when the download is finished to send the image to the cropping activity? Here is my code: private void pickFromGallery() { Intent galleryIntent = new Intent