Media playback is unsupported on your device Media caption Karishma Vaswani reports from Jakarta as footage shows passengers escaping - Courtesy Metro TV

An airliner has ended up in the sea off the Indonesian island of Bali after missing Denpasar airport runway, but all those on board survived.

Hospitals treated 22 people after the crash, which involved an Indonesian Lion Air plane carrying 101 passengers and seven crew.

Photos posted on Twitter showed the jet with its fuselage cracked, sitting in water near rocks, with dinghies nearby.

The Boeing 737 was on a domestic flight from Bandung in West Java.

Analysis Lion Air is Indonesia's biggest private discount carrier and has been expanding rapidly over the last few years. Earlier this year it agreed to buy 234 Airbus planes, to use in its Indonesian operations. It started operations in Indonesia in 2000 with just one plane and now is thought to have around 100. It currently serves more than 36 destinations around Indonesia and Asia. The growth in Lion Air matches the growth in the country's aviation sector. But analysts have cautioned that this rapid expansion must be matched with adequate training for pilots, many of whom complain they are overworked and underpaid.

It missed the runway and landed in the ocean nearby.

Terrified passengers made their way ashore through the shallow water in life jackets as police in rubber dinghies rowed out to rescue them.

A transport ministry official told BBC News it was too early to talk about what had caused the plane - a new Boeing 737-800 - to crash.

At least one foreigner was aboard the plane - a Frenchman, according to AFP news agency.

'Everybody screamed'

Light rain was falling at the time of the crash, which occurred at around 15:00 (07:00 GMT).

Most of those hurt had head wounds and broken bones with one report of a passenger suffering a life-threatening brain haemorrhage.

"The plane plunged into the sea at high speed," passenger Ignatius Juan Sinduk, 45, told AFP from his hospital bed in Denpasar, where he was being treated for a chest injury.

Image caption People on other flights landing at Denpasar airport could see the strange sight of a jet lying, apparently intact, just out to sea Image caption But the plane's fuselage had cracked during the crash Image caption The fact that it fell in shallow water allowed people to escape with relative ease Image caption Survivors arrived in hospital wet and bedraggled after their escape Image caption At least 22 people suffered injuries of some kind Image caption Local people gathered near the airport after the crash previous slide next slide

"Everybody screamed and water suddenly surged into the plane. Passengers panicked and scrambled for life jackets. Some passengers fell, some ran into others, it was chaos.

"I managed to grab [a lifejacket] and slowly swam out of the plane and to the shore."

Dewi, a passenger who sustained head wounds in the crash, told AP news agency he had watched the plane descending towards the sea.

"All of the passengers were screaming in panic in fear they would drown," he recalled.

"I left behind my belongings and went to an emergency door. I got out of the plane and swam before rescuers jumped in to help me."

The discount airline Lion Air, Indonesia's biggest commercial carrier, has been expanding rapidly in recent years.

Bali is one of Indonesia's top holiday destinations, popular with foreign tourists.