Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8757889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:24:37+00:00 2026-06-13T14:24:37+00:00

I am trying to upload a file and an image using the google drive

  • 0

I am trying to upload a file and an image using the google drive api example for iOS.

It’s easy to upload text and image separately but I can’t figure out how to upload both.
How do you combine an image and text?
If I do this:

  NSData *fileContent = [self.textView.text dataUsingEncoding:NSUTF8StringEncoding];
  NSData *imageData = UIImagePNGRepresentation(self.someImage.image);
  NSMutableData *uploadData = [NSMutableData dataWithData:fileContent];
  [uploadData appendData:imageData];

  uploadParameters = [GTLUploadParameters uploadParametersWithData:uploadData MIMEType:@"multipart/related"];

It will upload both but I can’t view it on my drive.

Do I have to create a google doc?
If so, what is the format of a google doc?
I create a doc on my drive and added some text and image to it so that works, so google docs can definitely handle text and images in the same file.

I searched for Google doc format but nothing comes up there either (if this is the right approach).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:24:38+00:00Added an answer on June 13, 2026 at 2:24 pm

    If you’re trying to upload a formatted document that contains both text & images, that is considered a single file and must be uploaded that way. There isn’t a way to directly upload in the native Google Docs format, but you can use one of the other supported formats like DOCX, PDF, etc and convert them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to upload a file to google drive using http header and CURL
I was trying to upload file(s) using PrototypeJs request method but I failed. The
Using the asp.net file upload control is very easy, i'm trying to squeeze it
I am trying to upload an image to server using using XMLHttpRequest but fails.
Hi I am trying to upload image file using perl cgi-application. Not sure what
I've been trying to upload an image using ajax, but maybe I'm doing it
Trying to upload files using Google Gears and ASP.NET... I assume you can as
I'm trying to upload an image to imageshack using flex, but keep getting <links>
I am trying to upload an image file using ajax to the server. However,
I'm trying to upload an image file to my application, the user can choose

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.