I was wondering if it would be possible to write a disk image file directly to a partition without saving it as a file first. Something like
dd if="http://diskimages.com/i_am_a_disk_image.img" of=/dev/sdb1 bs=2M
I would also accept an answer in C or Python because I know how to compile them.