Currently I am shifted my server to linux from windows and I am facing some problem in my java webservice. In that I am creating a file in windows D drive. now I want to create that on linux server too. but I dont know how to give path and how to create (since it don't have drives as windows). so need some help for this. I am posting my java code below.
private static void receiveImg(String pic_bitmap) {
    FileOutputStream fos;
    try {
        fos = new FileOutputStream("D:\\AllImages\\ProfilePic\\Test.png");
        byte byteArray[] = Base64.decodeBase64(pic_bitmap);
        fos.write(byteArray);
        fos.close();
    } catch (FileNotFoundException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}
Thanks for any help.