Hi Paul,
What version of boto are you using? The reason I ask is that recent
versions of boto use the file pointer differently in that they don't try
to auto-rewind it for you. That said though, the behavior is better in
that it does what you tell it.
The file pointer you pass in to upload_part_from_file() should be
pointing exactly where you want it to start reading your data from. If
you are calculating the MD5 yourself, it may be that you are the file
pointer is still pointing at the end of the data or something which is
why the data doesn't match the md5sum the server calculates for your
upload.
That said, most of the tools such as compute_md5() should do the right
thing for you and leave the fp exactly as you gave it to them. So the
following should be something like what you need.
hd, cm, cl = boto.utils.compute_md5(fp)
md5 = (hd, cm)
mpu.upload_part_from_file(fp, part_num=mypart, md5=md5)
Tom.
> --
> You received this message because you are subscribed to the Google
> Groups "boto-users" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/boto-users/-/b5YJ2VHwZJEJ.
> To post to this group, send email to
boto-...@googlegroups.com.
> To unsubscribe from this group, send email to boto-users
> +
unsub...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/boto-users?hl=en.
--
Gemini Mobile Technologies -
http://geminimobile.com/
S3 REST API Compliant Cloud Storage with Cloudian®