Re: [appengine-java] Re: publishing html files

2012-03-17 Thread Vik
Hie

I tried to run the code as documented locally.

Code executes fine but i do not see the object getting created in store. nt
sure what is missing and where to debug

code i used is:

// Get the file service
FileService fileService = FileServiceFactory.getFileService();

/**
 * Set up properties of your new object
 * After finalizing objects, they are accessible
 * through Cloud Storage with the URL:
 * http://commondatastorage.googleapis.com/my_bucket/my_object
 */
GSFileOptionsBuilder optionsBuilder = new GSFileOptionsBuilder()
  .setBucket(blood)
  .setKey(1234567)
  .setAcl(public-read)
  .setMimeType(text/html);//.setUserMetadata(date-created, 092011,
owner, Jon);


// Create your object
AppEngineFile writableFile =
fileService.createNewGSFile(optionsBuilder.build());
 // Open a channel for writing
boolean lockForWrite = true; // Do you want to exclusively lock this object?
 FileWriteChannel writeChannel = fileService.openWriteChannel(writableFile,
lockForWrite);
// For this example, we write to the object using the PrintWriter
 PrintWriter out = new PrintWriter(Channels.newWriter(writeChannel,
UTF8));
out.println(The woods are lovely and deep.);
 out.println(But I have promises too keep.);

// Close the object without finalizing.
 out.close();
 // Finalize the object
 writeChannel.closeFinally();
System.out.println(Completed writing to google storage);

Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org


On Fri, Mar 16, 2012 at 8:19 PM, Jose Montes de Oca 
jfmontesde...@google.com wrote:

 You can find a sample code on how to use this Java API on
 the documentation here:
 http://code.google.com/appengine/docs/java/googlestorage/overview.html

 Hope this helps!

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/lUkma-x2GjYJ.

 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: publishing html files

2012-03-16 Thread Jose Montes de Oca
You can find a sample code on how to use this Java API on 
the documentation here: 
http://code.google.com/appengine/docs/java/googlestorage/overview.html

Hope this helps!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/lUkma-x2GjYJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: publishing html files

2012-03-14 Thread Vik
hie Jose

Any coded sample for this for google app engine for java?

Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org


On Fri, Mar 2, 2012 at 8:55 PM, Jose Montes de Oca jfmontesde...@google.com
 wrote:

 Vik,

 Working together with cloud storage sounds like a good solution to me.
 from app engine you can upload the file and define a public acl for the
 object using our Java API:
 http://code.google.com/appengine/docs/java/googlestorage/

 After the file is uploaded to Google Cloud Storgae, it would be accesible
 by anyone from an URL with the following structure:
 https://sandbox.google.com/storage/*bucket*/*object*

 Best,
 Jose

 On Tuesday, February 28, 2012 10:36:50 PM UTC-8, vikceo wrote:

 any thoughts on google cloud storage?

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Tue, Feb 28, 2012 at 12:22 AM, Matthew Jaggard matt...@jaggard.org.uk
  wrote:

 Have a look at the blobstore documentation, that might help you. However
 I'd be inclined to mention a naughty word Amazon (ssh!) S3 might be the
 best way forward.

 On 28 February 2012 06:32, Vik vik@gmail.com wrote:

 Any advise on this please?

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Sun, Feb 26, 2012 at 11:28 AM, Vik vik@gmail.com wrote:

 Hie

 I am generated html documents using a google text doc as template
 (reading it using gdata apis and then doing some text manipulation).
 Now, I want to publish these documents somewhere so that I can refer
 to others giving the url of the document (which means it would be publicly
 accessible).

 Any suggestions on how do i go about it? Like where should i host
 these?


 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


  --
 You received this message because you are subscribed to the Google
 Groups Google App Engine for Java group.
 To post to this group, send email to google-appengine-java@**
 googlegroups.com google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to google-appengine-java+**
 unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at http://groups.google.com/**
 group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en
 .


  --
 You received this message because you are subscribed to the Google
 Groups Google App Engine for Java group.
 To post to this group, send email to google-appengine-java@**
 googlegroups.com google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to google-appengine-java+**
 unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at http://groups.google.com/**
 group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en
 .


  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/mTLwSMpmcMMJ.

 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: publishing html files

2012-03-11 Thread Vik
hie

any advise on this please  as answer this question will help us to chose
the right option
Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org


On Sun, Mar 4, 2012 at 12:09 AM, Vik vik@gmail.com wrote:

 Hie

 Any code sample for jave for GAE doing this?

 And pros and cons between using gae blobstore vs cloud storage for java?

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Fri, Mar 2, 2012 at 8:55 PM, Jose Montes de Oca 
 jfmontesde...@google.com wrote:

 Vik,

 Working together with cloud storage sounds like a good solution to me.
 from app engine you can upload the file and define a public acl for the
 object using our Java API:
 http://code.google.com/appengine/docs/java/googlestorage/

 After the file is uploaded to Google Cloud Storgae, it would be accesible
 by anyone from an URL with the following structure:
 https://sandbox.google.com/storage/*bucket*/*object*

 Best,
 Jose

 On Tuesday, February 28, 2012 10:36:50 PM UTC-8, vikceo wrote:

 any thoughts on google cloud storage?

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Tue, Feb 28, 2012 at 12:22 AM, Matthew Jaggard 
 matt...@jaggard.org.uk wrote:

 Have a look at the blobstore documentation, that might help you.
 However I'd be inclined to mention a naughty word Amazon (ssh!) S3 might
 be the best way forward.

 On 28 February 2012 06:32, Vik vik@gmail.com wrote:

 Any advise on this please?

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Sun, Feb 26, 2012 at 11:28 AM, Vik vik@gmail.com wrote:

 Hie

 I am generated html documents using a google text doc as template
 (reading it using gdata apis and then doing some text manipulation).
 Now, I want to publish these documents somewhere so that I can refer
 to others giving the url of the document (which means it would be 
 publicly
 accessible).

 Any suggestions on how do i go about it? Like where should i host
 these?


 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


  --
 You received this message because you are subscribed to the Google
 Groups Google App Engine for Java group.
 To post to this group, send email to google-appengine-java@**
 googlegroups.com google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to google-appengine-java+**
 unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at http://groups.google.com/**
 group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en
 .


  --
 You received this message because you are subscribed to the Google
 Groups Google App Engine for Java group.
 To post to this group, send email to google-appengine-java@**
 googlegroups.com google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to google-appengine-java+**
 unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at http://groups.google.com/**
 group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en
 .


  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/mTLwSMpmcMMJ.

 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: publishing html files

2012-03-04 Thread Vik
Hie

Any code sample for jave for GAE doing this?

And pros and cons between using gae blobstore vs cloud storage for java?

Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org


On Fri, Mar 2, 2012 at 8:55 PM, Jose Montes de Oca jfmontesde...@google.com
 wrote:

 Vik,

 Working together with cloud storage sounds like a good solution to me.
 from app engine you can upload the file and define a public acl for the
 object using our Java API:
 http://code.google.com/appengine/docs/java/googlestorage/

 After the file is uploaded to Google Cloud Storgae, it would be accesible
 by anyone from an URL with the following structure:
 https://sandbox.google.com/storage/*bucket*/*object*

 Best,
 Jose

 On Tuesday, February 28, 2012 10:36:50 PM UTC-8, vikceo wrote:

 any thoughts on google cloud storage?

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Tue, Feb 28, 2012 at 12:22 AM, Matthew Jaggard matt...@jaggard.org.uk
  wrote:

 Have a look at the blobstore documentation, that might help you. However
 I'd be inclined to mention a naughty word Amazon (ssh!) S3 might be the
 best way forward.

 On 28 February 2012 06:32, Vik vik@gmail.com wrote:

 Any advise on this please?

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Sun, Feb 26, 2012 at 11:28 AM, Vik vik@gmail.com wrote:

 Hie

 I am generated html documents using a google text doc as template
 (reading it using gdata apis and then doing some text manipulation).
 Now, I want to publish these documents somewhere so that I can refer
 to others giving the url of the document (which means it would be publicly
 accessible).

 Any suggestions on how do i go about it? Like where should i host
 these?


 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


  --
 You received this message because you are subscribed to the Google
 Groups Google App Engine for Java group.
 To post to this group, send email to google-appengine-java@**
 googlegroups.com google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to google-appengine-java+**
 unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at http://groups.google.com/**
 group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en
 .


  --
 You received this message because you are subscribed to the Google
 Groups Google App Engine for Java group.
 To post to this group, send email to google-appengine-java@**
 googlegroups.com google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to google-appengine-java+**
 unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at http://groups.google.com/**
 group/google-appengine-java?**hl=enhttp://groups.google.com/group/google-appengine-java?hl=en
 .


  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/mTLwSMpmcMMJ.

 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: publishing html files

2012-03-02 Thread Jose Montes de Oca
Vik,

Working together with cloud storage sounds like a good solution to me. from 
app engine you can upload the file and define a public acl for the object 
using our Java API:http://code.google.com/appengine/docs/java/googlestorage/

After the file is uploaded to Google Cloud Storgae, it would be accesible 
by anyone from an URL with the following structure: 
https://sandbox.google.com/storage/*bucket*/*object*

Best,
Jose

On Tuesday, February 28, 2012 10:36:50 PM UTC-8, vikceo wrote:

 any thoughts on google cloud storage?

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Tue, Feb 28, 2012 at 12:22 AM, Matthew Jaggard 
 matt...@jaggard.org.ukwrote:

 Have a look at the blobstore documentation, that might help you. However 
 I'd be inclined to mention a naughty word Amazon (ssh!) S3 might be the 
 best way forward.

 On 28 February 2012 06:32, Vik vik@gmail.com wrote:

 Any advise on this please?

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Sun, Feb 26, 2012 at 11:28 AM, Vik vik@gmail.com wrote:

 Hie

 I am generated html documents using a google text doc as template 
 (reading it using gdata apis and then doing some text manipulation). 
 Now, I want to publish these documents somewhere so that I can refer to 
 others giving the url of the document (which means it would be publicly 
 accessible).

 Any suggestions on how do i go about it? Like where should i host 
 these? 


 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org
  

  -- 
 You received this message because you are subscribed to the Google 
 Groups Google App Engine for Java group.
 To post to this group, send email to 
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine-java?hl=en.


  -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine for Java group.
 To post to this group, send email to 
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/mTLwSMpmcMMJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: publishing html files

2012-03-01 Thread Mike Lawrence
How about a public google doc?
https://support.google.com/docs/bin/answer.py?hl=enanswer=184006


On Feb 26, 2:28 pm, Vik vik@gmail.com wrote:
 Hie

 I am generated html documents using a google text doc as template (reading
 it using gdata apis and then doing some text manipulation).
 Now, I want to publish these documents somewhere so that I can refer to
 others giving the url of the document (which means it would be publicly
 accessible).

 Any suggestions on how do i go about it? Like where should i host these?

 Thankx and Regards

 Vik
 Founderhttp://www.sakshum.orghttp://blog.sakshum.org

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: publishing html files

2012-02-28 Thread Matthew Jaggard
Have a look at the blobstore documentation, that might help you. However
I'd be inclined to mention a naughty word Amazon (ssh!) S3 might be the
best way forward.

On 28 February 2012 06:32, Vik vik@gmail.com wrote:

 Any advise on this please?

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Sun, Feb 26, 2012 at 11:28 AM, Vik vik@gmail.com wrote:

 Hie

 I am generated html documents using a google text doc as template
 (reading it using gdata apis and then doing some text manipulation).
 Now, I want to publish these documents somewhere so that I can refer to
 others giving the url of the document (which means it would be publicly
 accessible).

 Any suggestions on how do i go about it? Like where should i host these?


 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: publishing html files

2012-02-28 Thread Vik
any thoughts on google cloud storage?

Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org


On Tue, Feb 28, 2012 at 12:22 AM, Matthew Jaggard matt...@jaggard.org.ukwrote:

 Have a look at the blobstore documentation, that might help you. However
 I'd be inclined to mention a naughty word Amazon (ssh!) S3 might be the
 best way forward.

 On 28 February 2012 06:32, Vik vik@gmail.com wrote:

 Any advise on this please?

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Sun, Feb 26, 2012 at 11:28 AM, Vik vik@gmail.com wrote:

 Hie

 I am generated html documents using a google text doc as template
 (reading it using gdata apis and then doing some text manipulation).
 Now, I want to publish these documents somewhere so that I can refer to
 others giving the url of the document (which means it would be publicly
 accessible).

 Any suggestions on how do i go about it? Like where should i host these?


 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: publishing html files

2012-02-27 Thread Vik
Any advise on this please?

Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org


On Sun, Feb 26, 2012 at 11:28 AM, Vik vik@gmail.com wrote:

 Hie

 I am generated html documents using a google text doc as template (reading
 it using gdata apis and then doing some text manipulation).
 Now, I want to publish these documents somewhere so that I can refer to
 others giving the url of the document (which means it would be publicly
 accessible).

 Any suggestions on how do i go about it? Like where should i host these?


 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.