Downloads a full image or thumbnail from camera storage.
requesttype=0x01
Example command: 0x76 bytes. Command length will vary with length of pathname string.
0000 36 00 00 00 02 02 00 00-00 00 00 00 00 00 00 00 6............... 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 01 00 00 11-36 00 00 00 08 00 00 00 ........6....... 0050 00 00 00 00 00 30 00 00-44 3a 5c 44 43 49 4d 5c .....0..D:\DCIM\ 0060 31 35 35 43 41 4e 4f 4e-5c 49 4d 47 5f 35 35 39 155CANON\IMG_559 0070 33 2e 4a 50 47 00 - 3.JPG.
Parameters:
Flag for download of thumbnail: 0x00000001 to download thumbnail, 0x00000000 to download full image file.
Size of bulk transfers to use (Canon ZoomBrowser EX uses 0x1400)
Pathname of file to download, terminated by a NUL byte
This example requests download of the full image in file D:\DCIM\155CANON\IMG_5593.JPG, using transfers of 0x3000 bytes.
The response (from a PowerShot G2) was 0x40 bytes:
0000 00 00 00 00 02 03 84 24-19 00 00 00 00 00 00 00 .......$........ 0010 00 00 00 00 00 30 00 00-44 3a 5c 44 43 49 4d 5c .....0..D:\DCIM\ 0020 31 35 35 43 41 4e 4f 4e-5c 49 4d 47 5f 35 35 39 155CANON\IMG_559 0030 33 2e 4a 50 47 00 81 ce-58 39 00 00 f8 95 f1 3b 3.JPG...X9.....;
This indicates a total file size of 1647748 bytes (0x00192484 from offset 0x06). After this, a series of messages with length 0x3000 was read. Finally, a read of 0x484 finished download of the image.
Example command: 0x76 bytes. Command length will vary depending on the length of the pathname string.
0000 36 00 00 00 02 02 00 00-00 00 00 00 00 00 00 00 6............... 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 01 00 00 11-36 00 00 00 06 00 00 00 ........6....... 0050 01 00 00 00 00 30 00 00-44 3a 5c 44 43 49 4d 5c .....0..D:\DCIM\ 0060 31 35 35 43 41 4e 4f 4e-5c 49 4d 47 5f 35 35 39 155CANON\IMG_559 0070 33 2e 4a 50 47 00 - 3.JPG.
This requests the download of just the thumbnail from the file D:\DCIM\155CANON\IMG_5593.JPG, in chunks of 0x3000 bytes.
Initial response (from a PowerShot G2): 0x40 bytes
0000 00 00 00 00 02 03 9b 18-00 00 00 00 00 00 00 00 ................ 0010 01 00 00 00 00 30 00 00-44 3a 5c 44 43 49 4d 5c .....0..D:\DCIM\ 0020 31 35 35 43 41 4e 4f 4e-5c 49 4d 47 5f 35 35 39 155CANON\IMG_559 0030 33 2e 4a 50 47 00 fe d0-08 5a 00 00 90 12 17 2c 3.JPG....Z.....,
This indicates a length of 6299 bytes for the thumbnail (0x0000189b at offset 0x06). This is followed by a single read of 6299 bytes, downloading EXIF thumbnail info.