Flavorupload not uplaoding to the remote storage

Hi when I am reuplaoding a flavor video, I am able to upload through the kaltura admin panel console and it is getting stored in the remote storage but from the api it is not getting stored to the remote storage.


Please provide your code.

Hi when I am uploading through the kaltura console in flavors and in actions at that time the video is going to the remote storage but not when I am using the code below:
package com.kaltura.code.example;

import com.kaltura.client.enums.;
import com.kaltura.client.types.
import com.kaltura.client.services.*;
import com.kaltura.client.KalturaApiException;
import com.kaltura.client.KalturaClient;
import com.kaltura.client.KalturaConfiguration;

import com.kaltura.client.types.KalturaUploadedFileResource;

class CodeExample{

public static void main(String[] args){


KalturaConfiguration config = new KalturaConfiguration();
KalturaClient client = new KalturaClient(config);

String id = null;

KalturaUploadedFileResource contentResource = new KalturaUploadedFileResource();

Object result = client.getFlavorassetService().setContent(id, contentResource);

}catch(KalturaApiException e){