/** * Constructs a new MediaBteyArraySource using the specified byte data * and content type. */ public MediaByteArraySource(byte [] mediaBytes, String mediaType) { super(mediaType); this.mediaBytes = mediaBytes; this.contentLength = mediaBytes.length; this.lastModified = DateTime.now(); }
/** * Constructs a new MediaBteyArraySource using the specified byte data * and content type. */ public MediaByteArraySource(byte [] mediaBytes, String mediaType) { super(mediaType); this.mediaBytes = mediaBytes; this.contentLength = mediaBytes.length; this.lastModified = DateTime.now(); }