/**** Section 1 ****/
AsposeApp.setAppSID("77******-1***-4***-a***-80**********");
AsposeApp.setAppKey("********************");
//Build URI to generate barcode
//Type: Codabar, Code11, Code128 and Code39Extended etc.
//Format: PNG, JPEG and JPG etc.
String strURI = "https://api.aspose.com/v1.1/barcode/generate?text=Barcode Text Here&type=QR&format=png";
//Sign URI
String signedURI = Utils.Sign(strURI);
/**** End Section 1 ****/
/**** Section 2 ****/
InputStreamresponseStream= Utils.ProcessCommand(signedURI, "GET");
/**** End Section 2 ****/
/**** Section 3 ****/
Folder.SaveStreamToFile("Barcode1.png", responseStream);
/**** End Section 3 ****/
responseStream.close();
/**** Section 1 ****/
com.aspose.cloud.common.Product.setBaseProductUri("https://api.aspose.com/v1.1");
com.aspose.cloud.common.AsposeApp.setAppSID("77******-1***-4***-a***-80**********");
com.aspose.cloud.common.AsposeApp.setAppKey("********************");
/**** End Section 1 ****/
/**** Section 2 ****/
//Create an instance of BarCodeBuilder class
com.aspose.cloud.barcode.BarCodeBuilder builder = newcom.aspose.cloud.barcode.BarCodeBuilder("Pdf417
barcode generated by Aspose.BarCode for Cloud",
com.aspose.cloud.barcode.BarCodeType.Pdf417);
// Call Save() method to save the barcode to local disk
builder.Save(com.aspose.cloud.barcode.SaveLocation.Local, "Barcode1.png",
com.aspose.cloud.barcode.ImageFormat.PNG);
/**** End Section 2 ****/
Copyright © 2024, NextGenUpdate.
All Rights Reserved.