BRISBANE, Australia -- A German tourist who was missing for more than two weeks in the Australian Outback survived by eating flies after becoming lost and stranded by floodwaters, police said Friday.

Daniel Dudzisz was picked up by a motorist late Thursday near the township of Windorah in Queensland state, police Inspector Mark Henderson said.

The 26-year-old insulin-dependent diabetic had last been seen on Feb. 17 when he left Windorah to walk 77 kilometres (48 miles) north across rugged terrain to the settlement of Jundah, Henderson said.

Dudzisz became stranded by floodwaters for about 10 days and lived on insects for most of the time he was lost, Henderson said.

"He joked about never going hungry in the Australian Outback because of the amount of flies you can eat for their protein,'' Henderson told Australian Broadcasting Corp. radio.

"He had some baked beans and cereal when he left Windorah and exhausted that pretty quickly, and said he'd been eating flies ever since,'' Henderson added.

Dudzisz told police he had heard search helicopters but their crews could not see him through the canopy of trees, Henderson said.

Dudzisz, who had an adequate supply of insulin with him, refused medical treatment at Windorah.

"He certainly was hungry, but other than that he was in reasonable spirits,'' Henderson said.

Henderson said Dudzisz remained determined to trek west to the sparsely populated Northern Territory.

"He has made an agreement now that he will stick to the main roads now rather than going cross country,'' Henderson said.

Dudzisz had been hiking for several months through New South Wales state and Queensland, ABC reported.

Also on HuffPost:

Loading Slideshow...
  • In this photo provided by the New South Wales Rural Fire Service a wildfire near Deans Gap, Australia, crosses the Princes Highway Tuesday, Jan. 8, 2013. Firefighters are battling scores of wildfires in southeastern Australia as authorities evacuate national parks and warned that hot, dry and windy conditions were combining to raise the threat to its highest alert level. (AP Photo/NSW Rural Fire Service, James Morris)

  • A general view of bushfire smoke seen over nearby hills during the Big Bash League match between the Hobart Hurricanes and the Adelaide Strikers at Blundstone Arena on January 5, 2013 in Hobart, Australia. (Mark Metcalfe/Getty Images)

  • Clouds from a nearby bushfire are seen over Mount Wellington during day one of the Hobart International at Domain Tennis Centre on January 4, 2013 in Hobart, Australia. (Mark Metcalfe/Getty Images)

  • Water-bombing operations take place on a fire at Sandhills on January 9, 2013 in Bungendore, Australia. Temperatures cooled overnight offering relief to fire fighters following yesterday's heat wave recording temperatures of over 40-plus degrees across the state. Crews continue to fight blazes today, taking advantage of the improved conditions ahead fire danger conditions predicted later in the week. (Brendon Thorne/Getty Images)

  • NSW Rural Fire Service members attack the fire at Sandhills from the ground on January 9, 2013 in Bungendore, Australia. Temperatures cooled overnight offering relief to fire fighters following yesterday's heat wave recording temperatures of over 40-plus degrees across the state. Crews continue to fight blazes today, taking advantage of the improved conditions ahead fire danger conditions predicted later in the week. (Brendon Thorne/Getty Images)

  • Water-bombing operations take place on a fire at Sandhills on January 9, 2013 in Bungendore, Australia. Temperatures cooled overnight offering relief to fire fighters following yesterday's heat wave recording temperatures of over 40-plus degrees across the state. Crews continue to fight blazes today, taking advantage of the improved conditions ahead fire danger conditions predicted later in the week. (Brendon Thorne/Getty Images)

  • Flames are seen at the Sandhills bushfire on January 9, 2013 in Bungendore, Australia. Temperatures cooled overnight offering relief to fire fighters following yesterday's heat wave recording temperatures of over 40-plus degrees across the state. Crews continue to fight blazes today, taking advantage of the improved conditions ahead fire danger conditions predicted later in the week. (Brendon Thorne/Getty Images)

  • NSW Rural Fire Service members attack the fire at Sandhills from the ground on January 9, 2013 in Bungendore, Australia. Temperatures cooled overnight offering relief to fire fighters following yesterday's heat wave recording temperatures of over 40-plus degrees across the state. Crews continue to fight blazes today, taking advantage of the improved conditions ahead fire danger conditions predicted later in the week. (Brendon Thorne/Getty Images)

  • NSW Rural Fire Service members attack the fire at Sandhills from the ground on January 9, 2013 in Bungendore, Australia. Temperatures cooled overnight offering relief to fire fighters following yesterday's heat wave recording temperatures of over 40-plus degrees across the state. Crews continue to fight blazes today, taking advantage of the improved conditions ahead fire danger conditions predicted later in the week. (Brendon Thorne/Getty Images)

  • Smoke rises from a wildfire on January 8, 2013 in Nimmitabel,New South Wales, Australia. NSW was declared a total fire ban with the Illawarra, Shoalhaven and Southern Ranges regions placed on 'Catastrophic' alert. (Pamela Martin/Getty Images)