kkkk
kkkk

Reputation: 121

Mime type for VCF file to open using google drive API

What should be the MIME type for vcf files for google drive api.

Upvotes: 0

Views: 671

Answers (2)

MIKE PERETZ
MIKE PERETZ

Reputation: 159

try getting the mime type from file extension it worked for me. here is the code:

 final MimeTypeMap mime = MimeTypeMap.getSingleton();
 String tmptype = mime.getMimeTypeFromExtension("vcf");

Upvotes: 0

seanpj
seanpj

Reputation: 6755

Without knowing the specifics, here's a trick/hack I would use:

  1. Go to drive.google.com and create / upload / ... one.
  2. Use the playground here (Try it! at the bottom) to find the file in question and look at the 'mimeType' field.

Good Luck

Upvotes: 1

Related Questions