DRUG ENCODING AND UPLOADING