src/org/ohmage/domain/Media.java
public String toMetadata() {
			StringBuilder builder = new StringBuilder();
			if (contentType != null)
				builder.append(KEY_CONTENT_TYPE + KEY_VALUE_SEPARATOR + contentType + FIELD_SEPARATOR);
			if (fileName != null)
				builder.append(KEY_FILE_NAME + KEY_VALUE_SEPARATOR + fileName + FIELD_SEPARATOR);
			
			if (builder.length() > 0)
				return builder.toString();
			else return null;			
		}
/**
		 * Return the string representing the data in the contentInfo object to be 
		 * stored in the url_based_resource table. 
		 *  		
		 * @return Metadata string representing the contentInfo object.  
		 */
Return the string representing the data in the contentInfo object to be
stored in the url_based_resource table.

@return Metadata string representing the contentInfo object.
Return the string representing the data in the contentInfo object to be stored in the url_based_resource table . @return Metadata string representing the contentInfo object .
public String toMetadata() {
			StringBuilder builder = new StringBuilder();
			if (contentType != null)
				builder.append(KEY_CONTENT_TYPE + KEY_VALUE_SEPARATOR + contentType + FIELD_SEPARATOR);
			if (fileName != null)
				builder.append(KEY_FILE_NAME + KEY_VALUE_SEPARATOR + fileName + FIELD_SEPARATOR);
			if (builder.length() > 0)
				return builder.toString();
			else return null;			
		}
public String toMetadata ( ) { StringBuilder builder = new StringBuilder ( ) ; if ( contentType != null ) builder . append ( KEY_CONTENT_TYPE + KEY_VALUE_SEPARATOR + contentType + FIELD_SEPARATOR ) ; if ( fileName != null ) builder . append ( KEY_FILE_NAME + KEY_VALUE_SEPARATOR + fileName + FIELD_SEPARATOR ) ; if ( builder . length ( ) > 0 ) return builder . toString ( ) ; else return null ; }
Return the string representing the data in the contentInfo object to be
 stored in the url_based_resource table.
Return the string representing the data in the contentInfo object to be stored in the url_based_resource table .