<div dir="ltr"><div>Hello Jay,</div><div><br></div><div>Unfortunately I don't know python. I am writing on java. Could you explain me briefly what I have to use to send chunks in the Swift and then combine those chunks? Or maybe we can append bytes to file somehow?</div><div>If I understand correctly I need to store my first chunk as an individual object (0 - 4095 bytes) and then when I recieve the second chunk (with 4096 - 8192 bytes) I have to append that chunk to the first object. Is it correct? How can we append second chunk?</div><div><br></div><div>Sincerely,</div><div>Alexandr</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 23, 2016 at 5:49 PM, Jay Pipes <span dir="ltr"><<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 08/23/2016 10:13 AM, Alexandr Porunov wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
My server accepts files in chunks (4 Kbytes each chunk. File's size can<br>
be till 8 GB). Is it possible somehow store those chunks in Swift like a<br>
single file? Does somebody know any solution to solve this problem?<br>
</blockquote>
<br></span>
Yes, you can do this.<br>
<br>
The Glance Swift driver shows an example of how to do this:<br>
<br>
<a href="https://github.com/openstack/glance_store/blob/master/glance_store/_drivers/swift/store.py#L829-L944" rel="noreferrer" target="_blank">https://github.com/openstack/g<wbr>lance_store/blob/master/glance<wbr>_store/_drivers/swift/store.<wbr>py#L829-L944</a><br>
<br>
Best,<br>
-jay<br>
<br>
______________________________<wbr>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
</blockquote></div><br></div>