<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5261056907132640554.post36819840161334595..comments</id><updated>2011-07-19T13:01:07.586-07:00</updated><category term='ruby'/><category term='reflection'/><category term='dynect'/><category term='GWT'/><category term='s3'/><category term='ec2 eclipse'/><category term='ec2'/><category term='macosx'/><category term='video standup'/><category term='jersey'/><category term='emr'/><category term='hadoop'/><category term='iam'/><category term='job'/><category term='java kill process'/><category term='cloudwatch'/><category term='firefox plugin'/><category term='hive'/><category term='performance'/><category term='aws'/><category term='Google I/O'/><category term='gslb'/><category term='ebs'/><category term='crowdflower'/><category term='thrift'/><category term='growl'/><category term='xml'/><category term='berkeleydb'/><category term='hackday'/><category term='visualization'/><category term='ant'/><category term='scala'/><category term='java'/><category term='engineering'/><category term='programming'/><category term='culture'/><category term='cloudviz'/><category term='bash'/><category term='OO'/><category term='mongodb'/><category term='ichat'/><category term='ops'/><category term='appengine'/><category term='simple db'/><category term='Google Visualizations'/><category term='salesforce dart'/><category term='unit testing'/><category term='boto'/><category term='capistrano'/><category term='sdbtool'/><category term='udtf'/><title type='text'>Comments on bizo developer blog: google app engine (java) and s3</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dev.bizo.com/feeds/36819840161334595/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default'/><link rel='alternate' type='text/html' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html'/><author><name>larry ogrodnek</name><uri>http://www.blogger.com/profile/01105034385285773975</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5261056907132640554.post-1887422405598193959</id><published>2011-07-19T13:01:07.586-07:00</published><updated>2011-07-19T13:01:07.586-07:00</updated><title type='text'>Thanks for the clarification.  It sounds like a si...</title><content type='html'>Thanks for the clarification.  It sounds like a similar issue.  There&amp;#39;s nothing provided in the library to help with this, but I think you might be able to use s3&amp;#39;s multipart upload support to break the file into smaller chunks on the client side...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/1887422405598193959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/1887422405598193959'/><link rel='alternate' type='text/html' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html?showComment=1311105667586#c1887422405598193959' title=''/><author><name>larry ogrodnek</name><uri>http://www.blogger.com/profile/01105034385285773975</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html' ref='tag:blogger.com,1999:blog-5261056907132640554.post-36819840161334595' source='http://www.blogger.com/feeds/5261056907132640554/posts/default/36819840161334595' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1747900860'/></entry><entry><id>tag:blogger.com,1999:blog-5261056907132640554.post-3328447348233006511</id><published>2011-07-18T21:14:14.291-07:00</published><updated>2011-07-18T21:14:14.291-07:00</updated><title type='text'>Hi Larry,
I have used a servelet to store file as ...</title><content type='html'>Hi Larry,&lt;br /&gt;I have used a servelet to store file as below.&lt;br /&gt;public class UploaderServlet extends HttpServlet&lt;br /&gt;{&lt;br /&gt;public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException  {&lt;br /&gt; S3Store s3 = new S3Store(&amp;quot;s3.amazonaws.com&amp;quot;, &amp;quot;public Key&amp;quot;,        &amp;quot;Private key&amp;quot;);&lt;br /&gt;  s3.setBucket(&amp;quot;eyetask&amp;quot;);&lt;br /&gt;  ServletFileUpload upload = new ServletFileUpload();  &lt;br /&gt;  FileItemIterator iterator = null;&lt;br /&gt;  try {&lt;br /&gt;   iterator = upload.getItemIterator(req);&lt;br /&gt;  } catch (FileUploadException e) {   &lt;br /&gt;   e.printStackTrace();&lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt;  FileItemStream item = null;&lt;br /&gt;  try {&lt;br /&gt;   item = iterator.next();&lt;br /&gt;  } catch (FileUploadException e) {   &lt;br /&gt;   e.printStackTrace();&lt;br /&gt;  }  &lt;br /&gt;  InputStream stream = item.openStream();&lt;br /&gt;   String filename = item.getName();    &lt;br /&gt;   &lt;br /&gt;  byte[] byetFile = IOUtils.toByteArray(stream);  &lt;br /&gt;  &lt;br /&gt;  s3.storeItem(filename, byetFile, &amp;quot;public-read&amp;quot;);&lt;br /&gt;}&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;The error I am getting when uploading is “Uncaught exception from servlet com.google.apphosting.api.ApiProxy$RequestTooLargeException: The request to API call urlfetch.Fetch() was too large”. This error occurs only if the size of the file I am going to upload exceeds 1Mb. Do you have solution for this?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/3328447348233006511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/3328447348233006511'/><link rel='alternate' type='text/html' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html?showComment=1311048854291#c3328447348233006511' title=''/><author><name>Buddhika.jm</name><uri>http://www.blogger.com/profile/12869025896878246335</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html' ref='tag:blogger.com,1999:blog-5261056907132640554.post-36819840161334595' source='http://www.blogger.com/feeds/5261056907132640554/posts/default/36819840161334595' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1505595'/></entry><entry><id>tag:blogger.com,1999:blog-5261056907132640554.post-1030175139110907784</id><published>2011-07-18T10:38:40.154-07:00</published><updated>2011-07-18T10:38:40.154-07:00</updated><title type='text'>Buddhika.jm,  you&amp;#39;re probably running into a p...</title><content type='html'>Buddhika.jm,  you&amp;#39;re probably running into a problem with appengine request deadlines.  By default all HTTP requests have a deadline of 5 seconds.  This can be extended to a maximum of 10 seconds. See: http://code.google.com/appengine/docs/java/urlfetch/overview.html&lt;br /&gt;&lt;br /&gt;Amazon has support for uploading files in chunks (see: http://docs.amazonwebservices.com/AmazonS3/latest/API/index.html?mpUploadInitiate.html)&lt;br /&gt;&lt;br /&gt;this may be able to help you... maybe you can schedule some chunks to upload using appengine&amp;#39;s task api?&lt;br /&gt;&lt;br /&gt;s3-simple does not currently have support for multipart upload.  If you add it, please let me know and I will incorporate it.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/1030175139110907784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/1030175139110907784'/><link rel='alternate' type='text/html' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html?showComment=1311010720154#c1030175139110907784' title=''/><author><name>larry ogrodnek</name><uri>http://www.blogger.com/profile/01105034385285773975</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html' ref='tag:blogger.com,1999:blog-5261056907132640554.post-36819840161334595' source='http://www.blogger.com/feeds/5261056907132640554/posts/default/36819840161334595' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1747900860'/></entry><entry><id>tag:blogger.com,1999:blog-5261056907132640554.post-7495745206416539002</id><published>2011-07-17T06:48:13.394-07:00</published><updated>2011-07-17T06:48:13.394-07:00</updated><title type='text'>I also tried this. That works nicely with small fi...</title><content type='html'>I also tried this. That works nicely with small files with few Kilo bites. I wanted to store files with  the size of about 10MB. I tried this with large size files. But program does not sent the file to amazon S3 bucket  as I expected. Do u have any idea where the problem is? Please help.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/7495745206416539002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/7495745206416539002'/><link rel='alternate' type='text/html' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html?showComment=1310910493394#c7495745206416539002' title=''/><author><name>Buddhika.jm</name><uri>http://www.blogger.com/profile/12869025896878246335</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html' ref='tag:blogger.com,1999:blog-5261056907132640554.post-36819840161334595' source='http://www.blogger.com/feeds/5261056907132640554/posts/default/36819840161334595' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1505595'/></entry><entry><id>tag:blogger.com,1999:blog-5261056907132640554.post-4701308637444323658</id><published>2010-04-13T14:07:33.397-07:00</published><updated>2010-04-13T14:07:33.397-07:00</updated><title type='text'>Oliver,
  Are you using the 1.0.5 jar on github? (...</title><content type='html'>Oliver,&lt;br /&gt;  Are you using the 1.0.5 jar on github? (http://github.com/downloads/ogrodnek/s3-simple/s3-shell-1.0.5.jar)?&lt;br /&gt;&lt;br /&gt;  It includes its own Base64 class, and doesn&amp;#39;t reference the sun.misc.* stuff...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/4701308637444323658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/4701308637444323658'/><link rel='alternate' type='text/html' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html?showComment=1271192853397#c4701308637444323658' title=''/><author><name>larry ogrodnek</name><uri>http://www.blogger.com/profile/01105034385285773975</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html' ref='tag:blogger.com,1999:blog-5261056907132640554.post-36819840161334595' source='http://www.blogger.com/feeds/5261056907132640554/posts/default/36819840161334595' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1747900860'/></entry><entry><id>tag:blogger.com,1999:blog-5261056907132640554.post-3925603679421896257</id><published>2010-04-13T13:46:38.068-07:00</published><updated>2010-04-13T13:46:38.068-07:00</updated><title type='text'>Hi there, I&amp;#39;m trying to use the jar you sugges...</title><content type='html'>Hi there, I&amp;#39;m trying to use the jar you suggested but I&amp;#39;m running into trouble with GAE because it doesn&amp;#39;t support the use of classes from the sun.misc package&lt;br /&gt;&lt;br /&gt;This package is used in S3Store, line 565:&lt;br /&gt;&lt;br /&gt;contentMD5 = new BASE64Encoder().encode(md.digest());&lt;br /&gt;&lt;br /&gt;Any thoughts?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/3925603679421896257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/3925603679421896257'/><link rel='alternate' type='text/html' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html?showComment=1271191598068#c3925603679421896257' title=''/><author><name>Oliver</name><uri>http://www.blogger.com/profile/11161929348555056626</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html' ref='tag:blogger.com,1999:blog-5261056907132640554.post-36819840161334595' source='http://www.blogger.com/feeds/5261056907132640554/posts/default/36819840161334595' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-116465956'/></entry><entry><id>tag:blogger.com,1999:blog-5261056907132640554.post-5828217161552273139</id><published>2009-05-01T12:31:00.000-07:00</published><updated>2009-05-01T12:31:00.000-07:00</updated><title type='text'>You don&amp;#39;t really need to use the s3sh.java -- ...</title><content type='html'>You don&amp;#39;t really need to use the s3sh.java -- I left it in there, but in your application you should just use S3Store directly, e.g.:&lt;br /&gt;&lt;br /&gt;S3Store s3 = new S3Store(AWS_HOST, AWS_KEY, AWS_SECRET);&lt;br /&gt;List&amp;lt;String&amp;gt; buckets = s3.listBuckets();&lt;br /&gt;&lt;br /&gt;And you won&amp;#39;t have any problems.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/5828217161552273139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/5828217161552273139'/><link rel='alternate' type='text/html' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html?showComment=1241206260000#c5828217161552273139' title=''/><author><name>larry</name><uri>http://www.blogger.com/profile/01105034385285773975</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html' ref='tag:blogger.com,1999:blog-5261056907132640554.post-36819840161334595' source='http://www.blogger.com/feeds/5261056907132640554/posts/default/36819840161334595' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1747900860'/></entry><entry><id>tag:blogger.com,1999:blog-5261056907132640554.post-8417030684415317322</id><published>2009-05-01T10:45:00.000-07:00</published><updated>2009-05-01T10:45:00.000-07:00</updated><title type='text'>hi i have followed the above procedure

- java.io....</title><content type='html'>hi i have followed the above procedure&lt;br /&gt;&lt;br /&gt;- java.io.FileOutputStream is not supported by Google App Engine's Java runtime &lt;br /&gt; environment  in s3sh.java file</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/8417030684415317322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5261056907132640554/36819840161334595/comments/default/8417030684415317322'/><link rel='alternate' type='text/html' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html?showComment=1241199900000#c8417030684415317322' title=''/><author><name>God is Great</name><uri>http://www.blogger.com/profile/07319118517256589320</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://dev.bizo.com/2009/05/google-app-engine-java-and-s3.html' ref='tag:blogger.com,1999:blog-5261056907132640554.post-36819840161334595' source='http://www.blogger.com/feeds/5261056907132640554/posts/default/36819840161334595' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1416084317'/></entry></feed>
