Send feedback
Class PartMaker (0.2.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.2.0keyboard_arrow_down
Inheritance
Object >
PartMaker
Static Methods
fromMimeTypeAndData(String mimeType, Object partData)
public static Part fromMimeTypeAndData ( String mimeType , Object partData )
Parameters
Name
Description
mimeType
String currently accepted values are "image/png", "image/jpeg", "video/mp4",
"video/mpeg", "video/quicktime", "video/x-msvideo", "video/x-ms-wmv", "video/x-flv"
partData
Object the following types can be accepted.
a String representing the url of the data. Resulting Part will have fileData field
set.
a URI object. Resulting Part will have fileData field set.
a URL object. Resulting Part will have fileData field set.
byte arrays that represents the actual data. Resulting Part will have inlineData
field set.
com.google.protobuf.ByteString that represents the actual data. Resulting Part will
have inlineData field set.
Returns
Type
Description
Part
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-11-19 UTC."],[],[]]