Question: I am trying to convert barcode image generated via barcode4j but unable to do so. When I use FileOutputStream to generate image in local path its working as expected. but when using ByteArrayOutputStream to convert it into base64 string I am getting nothing.. Is there something wrong with my code?

```
public void testNothing() throws FileNotFoundException, UnsupportedEncodingException{
    Code39Bean bean = new Code39Bean();
    int resolution = 150;

    bean.setModuleWidth(UnitConv.in2mm(1.0f / resolution)); //makes the narrow bar

    bean.setWideFactor(3);
    bean.doQuietZone(false);
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    try {

     BitmapCanvasProvider canvas = new BitmapCanvasProvider(
             out, "image/x-png", resolution, BufferedImage.TYPE_BYTE_BINARY, false, 0);
     bean.generateBarcode(canvas, "1234");
     System.out.println("Generating Base64");
    // Base64Encoder encode= new Base64Encoder();

     String imgString = new String(Base64Encoder.encode(out.toByteArray()));
     System.out.println("String Generated :"+ imgString);
     try {
        out.close();
    } catch (IOException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
    }

     try {
        canvas.finish();
    } catch (IOException e) {

        e.printStackTrace();
    }
    } finally {
     try {
        out.close();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
    }
}

```

**OUTPUT**

```
Generating Base64
String Generated :

```

Answer: 
With the Sass syntax, you can't break up declarations across multiple lines. This should work, with everything on a single line:

```
div
  background: radial-gradient(ellipse at top right, rgb(175,140,175), transparent), radial-gradient(ellipse at bottom left, rgb(140,140,175), transparent), radial-gradient(ellipse at top left, rgb(175,140,175), transparent), radial-gradient(ellipse at bottom right, rgb(140,140,175), transparent)

```

You might consider using the SCSS syntax instead, which DOES allow multiple lines, more like regular CSS.
yes, you can:

```
  $layer1: radial-gradient(ellipse at top right, rgb(175,140,175), transparent)
  $layer2: radial-gradient(ellipse at bottom left, rgb(140,140,175), transparent)
  $layer3: radial-gradient(ellipse at top left, rgb(175,140,175), transparent)
  $layer4: radial-gradient(ellipse at bottom right, rgb(140,140,175), transparent)
  background: $layer1, $layer2, $layer3, $layer4

```