Deactivated phone won't connect to wifi
If you are using the latest version of IOS, or if you can connect to external wifi to upgrade to the latest version of IOS you can transfer the photos via airdrop.

Airdrop utilizes, both wifi and bluetooth.