An electron beam is obtained using laser wakefield electron accelerator, and converted into a \gamma-ray source after undergoing bremsstrahlung radiation in a dense material. A quasi-monoenergetic structure is observed when the length of the plasma c