title: How to convert Byte array into bitmap image?
body: <p>Here i attach code that convert Bitmap to Byte array now i have to regenerate bitmap to show in android Image-view.</p>
  
  <p>In below code mRawBitmapData is byte Araay. Here code is create byte array for converted image so now i have to regenerate the bitmap from this byte array.</p>
  
  <pre><code>private void convertArgbToGrayscale(Bitmap bmpOriginal, int width, int height){
      int pixel;
      int k = 0;
      int B=0,G=0,R=0;
      try{
          for(int x = 0; x &lt; height; x++) {
              for(int y = 0; y &lt; width; y++, k++) {
  
                  pixel = bmpOriginal.getPixel(y, x);
  
                  if(pixel == -1){
                      mDataArray[k] = 1;
                  }
                  else {
                      mDataArray[k] = 0;
                  }
              }
              if(mDataWidth&gt;width){
                  for(int p=width;p&lt;mDataWidth;p++,k++){
                      mDataArray[k]=0;
                  }
              }
          }
      }catch (Exception e) {
  
          Log.e(TAG, e.toString());
      }
  }
  
  private void createRawMonochromeData(){
      int length = 0;
      for (int i = 0; i &lt; mDataArray.length; i = i + 8) {
  
          int k=0;
          for (int j = 7; j &gt;=0; j--, k++) {
              if(mDataArray[i+k]==1)
              {
                  mRawBitmapData[length] |= 1 &lt;&lt; j;
              }
              else
              {
                  mRawBitmapData[length] &amp;= ~(1 &lt;&lt; j);
              }
  
          }
  
          length++;
  
      }
  }
  </code></pre>