Aspose.BarCode for Cloud[![Aspose.BarCode for Cloud][1], two dimensional (2D), and postal formats. Generate barcode images in a variety of image formats: JPEG, PNG, GIF, BMP, TIFF and many others. Recognize barcodes from different image types Learn More

What’s new in the latest releaseThis is a major revamp release for Aspose.BarCode Cloud SDK for Java. It covers all the [Aspose.BarCode Cloud APIs][2]. This SDK provides a complete solution for barcode generation and recognition in Java using powerful [Aspose.BarCode Cloud APIs][3], so you can perform barcode generation and recognition operations in the cloud seamlessly. Source Code Repository Complete source code of this release of Aspose.BarCode Cloud SDK for Java is freely available on your favorite GitHub repository.

  • Aspose.BarCode Cloud SDK for Java - v1.0.0

Setup Aspose.BarCode Cloud SDK for Java is also available as released artifacts in the [Aspose Maven Repository][4]. You can bypass GitHub source code repository and depend directly on the released artifacts from Aspose Maven Repository by adding the following repository and dependency to development environments like Eclipse or Apache Maven: Aspose Maven Repository

<repositories>
    <repository>
        <id>aspose-maven-repository</id>
        <name>Aspose Maven Repository</name>
        <url>http://repository.aspose.cloud/repo/</url>
    </repository>
</repositories> 
```**Maven Dependency**

//Instantiate Aspose BarCode Cloud API SDK BarcodeApi barcodeApi = new BarcodeApi(apiKey, appSID,true);

//set input file name String name = “sample-barcode”; String text = “AsposeBarCode”; String type = “Code128”; String format = “jpeg”; Float resolutionX = 0.0f; Float resolutionY = 0.0f; Float dimensionX = 0.0f; Float dimensionY = 0.0f; String codeLocation = “Below”; String grUnit = “mm”; String autoSize = “true”; Float barHeight = 0.0f; Float imageHeight = 0.0f; Float imageWidth = 0.0f; String imageQuality = “default”; Float rotAngle = 0.0f; Float topMargin = 0.0f; Float bottomMargin = 0.0f; Float leftMargin = 0.0f; Float rightMargin = 0.0f; String enableChecksum = “”; String storage = “”; String folder = “”;
File file = null ;

//invoke Aspose.BarCode Cloud SDK API to create barcode and put in cloud storage
SaaSposeResponse apiResponse = barcodeApi.PutBarcodeGenerateFile(name, text, type, format, resolutionX, resolutionY, dimensionX, dimensionY, codeLocation, grUnit, autoSize, barHeight, imageHeight, imageWidth, imageQuality, rotAngle, topMargin, bottomMargin, leftMargin, rightMargin, enableChecksum, storage, folder, file);

if(apiResponse!=null && apiResponse.getStatus().equals(“OK”)){
//download generated barcode from cloud storage com.aspose.storage.model.ResponseMessage storageRes = storageApi.GetDownload(name, null, null); InputStream responseStream = storageRes.getInputStream(); final Path destination = Paths.get(“c:\temp" + name + “.” + format); Files.copy(responseStream, destination, StandardCopyOption.REPLACE_EXISTING); }

 }catch(Exception e){
         e.printStackTrace();
     } 

*   [Working with Barcode Generation](https://www.aspose.com/docs/display/barcodecloud/Working+with+Barcode+Generation)
*   [Working with Barcode Recognition](https://www.aspose.com/docs/display/barcodecloud/Working+with+Barcode+Recognition)

## Start a Free Trial TodayStart a free trial today – all you need is to [sign up][7] with the Aspose Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by Aspose Cloud.




[1]: https://blog.aspose.com/wp-content/uploads/sites/2/2014/12/aspose_barcode_for_cloud.png "Aspose.BarCode for Cloud")](https://www.aspose.com/cloud/barcode-api.aspx)Aspose.BarCode for Cloud’s platform independent document manipulation API is a true REST API that can be used with any language: .NET, Java, PHP, Ruby, Rails, Python, jQuery and many more. You can use it with any platform — web, desktop, mobile, and cloud. Aspose.BarCode for Cloud allows developers to quickly and easily add barcode generation and recognition functionality to their applications. Aspose.BarCode for Cloud is a complete solution for barcode generation and recognition. It helps us to generate barcode images from scratch in linear (1D
[2]: https://www.aspose.com/docs/display/barcodecloud/Home
[3]: https://www.aspose.com/cloud/barcode-api.aspx
[4]: http://maven.aspose.com/repository/repo
[5]: https://www.aspose.com/docs/display/barcodecloud/Home
[6]: https://www.aspose.com/docs/display/barcodecloud/Developer+Guide
[7]: http://dashboard.aspose.cloud/