I created image of, for example, /data partition with
adb pull /dev/block/mmcblk0pXXX data.img
Can I use
fastboot flash data data.img
fastboot reboot
to restore it back? Or fastboot require specific, not just raw binary, image file format? If so, is it possible to convert my data.img to that specific format?