code: public static Attachment create(@NonNull String data, @NonNull String type, @Nullable String folder, @Nullable String name) {
          return new Attachment(ContentData.create(data, type, name), folder, type);
      }
docs: Create data object to send from a file.
  
  @param data Base64 encoded data to upload.
  @param type Mime type of the data.
  @return Data object to send.