How to upload to Imgur (API v3) using binary format of image?
问题 As per the API we can upload images as a binary file. https://api.imgur.com/endpoints/image#image-upload I tried the following to read the file into a byte array. // Example 1 byte[] fileBytes = new byte[(int) new File("/home/sample.png").length()]; fileBytes = FileUtils.readFileToByteArray( this.imageRequest.getFile() ); String sImageBinaryData = new String( fileBytes ); How exactly should i extract binary data of an image? PS: I am not interested to know how to upload image using (base64 &