I developing app which send images to server. All image name must begin with scanned code (barcode or QR code) + 5 random numbers.
Everthing works fine if i scan barcode with numbers. But if i scan QR code wich contain slash character `/` then my app explode.
if I parse scanned QR code and replace `/` with `_` again everything works fine.

This is code where i generate image file

```
private File createImageFile() throws IOException {

    imageName = generateImageName();
    File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
    File image = File.createTempFile(imageName, ".png", storageDir);
    mCurrentPhotoPath = image.getPath();

    mImageNameList.add(imageName);
    return image;
}

```

This is code where i generate image name. Part with replacing characters can be commented.

```
public String generateImageName() {

    int randomNumber = randomGenerator.nextInt((99999 - 100) + 1) + 100;
    // Image name generator
    if (mCodeContent.contains("http://")) {
        mCodeContent = mCodeContent.replace("http://", "");
    }
    if (mCodeContent.contains("/")) {
        mCodeContent = mCodeContent.replace("/", "_");
    }
    imageName = mCodeContent + "_" + Integer.toString(randomNumber) + ".png";
    return imageName;
}

```

i need full QR code name with slashes