!636 !standard functions main { static String programID; static boolean test; psvm { String name = args[0]; // put file name here if (args.length > 1 && args[1].equals("test")) test = true; name = new File(name).getAbsolutePath(); byte[] imgdata = loadBinaryFile(name); if (imgdata == null) System.out.println("File not found: " + name); else if (test) print(binaryUrlencode(imgdata)); else uploadImage("image-uploader " + programID, "Image " + name + " from " + computerID(), imgdata); } }