code: function( filename, mime_type ) {
  
  		// Calculate relative path
  		var relPath = filename;
  		if (relPath.substr(0,this.baseDir.length) === this.baseDir)
  			relPath = relPath.substr( this.baseDir.lengh );
  
  		// Write control operation
  		this.stream8.write( pack1b( CTRL_OP.EMBED ) );
  		this.counters.op_ctr++;
  		// Write string ID from the string lookup table
  		this.stream16.write( pack2b( this.stringID(this.bundleName + "/" + relPath) ) );
  		this.counters.ref_str+=2;
  		// Encode primitive
  		encodePrimitive( this, new FileResource( filename, mime_type) );
  		
  	}
docs: Embed specified resource