Uploading image to google drive without file input field
NickName:karthi keyan Ask DateTime:2022-11-15T21:10:45

Uploading image to google drive without file input field

I need to upload an image to google drive via nodejs after cropping it by a image cropping library. Previously I was uploading images with file input field, so i can get buffer(using express-fileupload library) of the image in backend(nodejs). Now the problem is, after cropping I have image in the form of

data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAA....

How to send images in this form to backend such that we could get buffer of that image so as to upload to google drive. Else could we upload this directly to google drive in frontend(javascript)? .I tried using FormData but I can get only string not buffer.

Copyright Notice:Content Author:「karthi keyan」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/74446207/uploading-image-to-google-drive-without-file-input-field

More about “Uploading image to google drive without file input field” related questions

Uploading image to google drive without file input field

I need to upload an image to google drive via nodejs after cropping it by a image cropping library. Previously I was uploading images with file input field, so i can get buffer(using express-fileup...

Show Detail

File size is zero when uploading to Google Drive with Python and Flask

I am trying to combine Google Drive API with Flask to upload files to Google drive. To upload the files I use the following code: @app.route('/upload_google', methods=['GET','POST']) def upload_go...

Show Detail

Google Drive uploading issue with Google drive SDK

We are facing an issue in file uploading with Google drive SDK. Our Symfony application is uploading a file to Google drive. The uploading was successful, but drive not listing the files. The file is

Show Detail

Error uploading image file to Google Drive using REST API

I am working with the Google Drive for the first time. I am trying to upload a jpg file to my Google Drive through my app. I have completed the OAuth 2.0 authorization for account login and drive

Show Detail

File picker for uploading to Google Drive

I'm learning about Google Api for uploading file on Android and did find the good sample about it.(you can take a look on that sample here: https://github.com/sdivakarrajesh/Uploading-Files-to-Google-

Show Detail

Download image file from Google Drive

I am uploading an image file to the Google Drive SDK and then trying to download the same image back. I looked at the examples for downloading files from the Google Drive Developer examples, but they

Show Detail

Google Drive Update File

from googleapiclient.http import MediaFileUpload from Google import Create_Service CLIENT_SECRET_FILE = 'client-secret.json' API_NAME ='drive' API_VERSION = 'v3' SCOPES = ['https://www.googleapis

Show Detail

How To Set Custom File ID While Uploading a File To Google Drive Using Google Drive API? (PHP)

I am working on a project in which I need to upload a .xlsx file to my google drive via Google Drive API. Then also to get back the link so I can store it into MySQL Database. The Uploading part is

Show Detail

Android: How to stop uploading a file to google drive

I know how to upload a file to google drive, using an asynchronous task, able to cancel the async task. But, how to stop the uploading process. insert = service.files().insert(image, image_content);

Show Detail

Uploading file to Google Drive using resumable API

I have a quite large file that I am trying to upload to google drive using the API. I am trying to do it with a sample image for learning purposes. Uploading the image as a multiplart upload or a ...

Show Detail