0

I'm writing a fairly involved application for working with Sony cameras.

I can list the contents of the camera and copy image files no problem at all, but I can't seem to figure out the size of the files before I start to download them.

I'm receiving the file list using the standard getContentList API, and finding the files using the originals array in the response. That response seems to have no file size information in it.

Is this possible? Knowing the file size before downloading is important for a good user experience, and all the other camera APIs support it.

I do get the size when I start to download in the HTTP Content-Length header, but performing HEAD requests to hundreds of URLs in a row seems very inefficient!

iKenndac
  • 18,730
  • 3
  • 35
  • 51

1 Answers1

0

Unfortunately the API does not support getting the file size.

mldeveloper
  • 2,253
  • 1
  • 13
  • 14
  • So how does the Sony PlayMemories app know what the size of the file is? During transfers a progress bar _is_ shown and for video it seems to actually be based on the file size. – DJFliX Sep 23 '16 at 17:55