[appengine-java] Re: Upload to Blob Storage from Silverlight 4

2010-05-19 Thread Patrick Brown
Hi

   Sorry to reply to my own message but I am a bit stuck for now, has
anyone done anything similar or have any pointers on where I should
research?

Thanks,
Patrick

On May 17, 2:13 pm, Patrick Brown  wrote:
> Hello
>
>    I have a silverlight application hosted in my Index.html page that
> I am able to upload blobs through to the DevAppServer.  Last week I
> enabled billing in my application, when I attempt in production I
> receive a "Not Found" exception after post but prior to my success
> handler being called.  To make this work I am creating a multipart
> form in silverlight and posting to an "attach" servlet ( shown here ),
> I see all the log messages but my upload handler is not hit running
> under the AppEngine.  Any ideas where I am going wrong or is there a
> better approach?
>
>   I should say, I am very new to all of the technologies I am using
> here so I am sorry if my description is a bit rough.
>
> Thank you for your time and ideas.
> Patrick
>
> public void doPost(HttpServletRequest req, HttpServletResponse resp)
> throws IOException
> {
>   log.info("Post attachment started");
>   BlobstoreService blobstoreService =
> BlobstoreServiceFactory.getBlobstoreService();
>   String uploadUrl = blobstoreService.createUploadUrl("/upload");
>
>   log.info("Upload URL created");
>   RequestDispatcher dispatcher =
> req.getRequestDispatcher(uploadUrl);
>   log.info(String.format("dispatcher for %s retrieved", uploadUrl));
>
>   try {
>      log.info("forwarding");
>      dispatcher.forward(req, resp);
>      log.info("forwarded");
>   } catch (ServletException e) {
>      e.printStackTrace();
>      log.info(e.getMessage());
>   }
>
> }
>
> --
> 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-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://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-j...@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: Upload to Blob Storage from Silverlight 4

2010-05-19 Thread Patrick Brown
Hi

   I just noticed something interesting - on the dev server if I can
see my __BlobUploadSessions__ created prior to forwarding my call on
to have the blobs created, if I skip that forward the sessions stay as
I would expect, if I do the same on the AppEngine I don't see the
__BlobUploadSessions__, it appears that they are not being created
successfully and that is maybe what is "Not found"

Thank you,
Patrick

On May 19, 3:58 pm, Patrick Brown  wrote:
> Hi
>
>    Sorry to reply to my own message but I am a bit stuck for now, has
> anyone done anything similar or have any pointers on where I should
> research?
>
> Thanks,
> Patrick
>
> On May 17, 2:13 pm, Patrick Brown  wrote:
>
>
>
>
>
> > Hello
>
> >    I have a silverlight application hosted in my Index.html page that
> > I am able to upload blobs through to the DevAppServer.  Last week I
> > enabled billing in my application, when I attempt in production I
> > receive a "Not Found" exception after post but prior to my success
> > handler being called.  To make this work I am creating a multipart
> > form in silverlight and posting to an "attach" servlet ( shown here ),
> > I see all the log messages but my upload handler is not hit running
> > under the AppEngine.  Any ideas where I am going wrong or is there a
> > better approach?
>
> >   I should say, I am very new to all of the technologies I am using
> > here so I am sorry if my description is a bit rough.
>
> > Thank you for your time and ideas.
> > Patrick
>
> > public void doPost(HttpServletRequest req, HttpServletResponse resp)
> > throws IOException
> > {
> >   log.info("Post attachment started");
> >   BlobstoreService blobstoreService =
> > BlobstoreServiceFactory.getBlobstoreService();
> >   String uploadUrl = blobstoreService.createUploadUrl("/upload");
>
> >   log.info("Upload URL created");
> >   RequestDispatcher dispatcher =
> > req.getRequestDispatcher(uploadUrl);
> >   log.info(String.format("dispatcher for %s retrieved", uploadUrl));
>
> >   try {
> >      log.info("forwarding");
> >      dispatcher.forward(req, resp);
> >      log.info("forwarded");
> >   } catch (ServletException e) {
> >      e.printStackTrace();
> >      log.info(e.getMessage());
> >   }
>
> > }
>
> > --
> > 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-j...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine-java+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://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-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.- Hide quoted 
> text -
>
> - Show quoted text -

-- 
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-j...@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: Upload to Blob Storage from Silverlight 4

2010-05-25 Thread Patrick Brown
Hi

   I found a solution to this issue, if there is any interest out
there I can write something up on what I did.

Thanks,
Patrick

On May 19, 4:36 pm, Patrick Brown  wrote:
> Hi
>
>    I just noticed something interesting - on the dev server if I can
> see my __BlobUploadSessions__ created prior to forwarding my call on
> to have the blobs created, if I skip that forward the sessions stay as
> I would expect, if I do the same on the AppEngine I don't see the
> __BlobUploadSessions__, it appears that they are not being created
> successfully and that is maybe what is "Not found"
>
> Thank you,
> Patrick
>
> On May 19, 3:58 pm, Patrick Brown  wrote:
>
>
>
>
>
> > Hi
>
> >    Sorry to reply to my own message but I am a bit stuck for now, has
> > anyone done anything similar or have any pointers on where I should
> > research?
>
> > Thanks,
> > Patrick
>
> > On May 17, 2:13 pm, Patrick Brown  wrote:
>
> > > Hello
>
> > >    I have a silverlight application hosted in my Index.html page that
> > > I am able to upload blobs through to the DevAppServer.  Last week I
> > > enabled billing in my application, when I attempt in production I
> > > receive a "Not Found" exception after post but prior to my success
> > > handler being called.  To make this work I am creating a multipart
> > > form in silverlight and posting to an "attach" servlet ( shown here ),
> > > I see all the log messages but my upload handler is not hit running
> > > under the AppEngine.  Any ideas where I am going wrong or is there a
> > > better approach?
>
> > >   I should say, I am very new to all of the technologies I am using
> > > here so I am sorry if my description is a bit rough.
>
> > > Thank you for your time and ideas.
> > > Patrick
>
> > > public void doPost(HttpServletRequest req, HttpServletResponse resp)
> > > throws IOException
> > > {
> > >   log.info("Post attachment started");
> > >   BlobstoreService blobstoreService =
> > > BlobstoreServiceFactory.getBlobstoreService();
> > >   String uploadUrl = blobstoreService.createUploadUrl("/upload");
>
> > >   log.info("Upload URL created");
> > >   RequestDispatcher dispatcher =
> > > req.getRequestDispatcher(uploadUrl);
> > >   log.info(String.format("dispatcher for %s retrieved", uploadUrl));
>
> > >   try {
> > >      log.info("forwarding");
> > >      dispatcher.forward(req, resp);
> > >      log.info("forwarded");
> > >   } catch (ServletException e) {
> > >      e.printStackTrace();
> > >      log.info(e.getMessage());
> > >   }
>
> > > }
>
> > > --
> > > 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-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > google-appengine-java+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://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-j...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine-java+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine-java?hl=en.-Hide quoted 
> > text -
>
> > - Show quoted text -
>
> --
> 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-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.- Hide quoted 
> text -
>
> - Show quoted text -

-- 
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-j...@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: Upload to Blob Storage from Silverlight 4

2010-07-06 Thread Mark
Hi,

It'd be great if you can share what you did,

Thanks

On May 25, 3:03 pm, Patrick Brown  wrote:
> Hi
>
>    I found a solution to this issue, if there is any interest out
> there I can write something up on what I did.
>
> Thanks,
> Patrick
>
> On May 19, 4:36 pm, Patrick Brown  wrote:
>
>
>
> > Hi
>
> >    I just noticed something interesting - on the dev server if I can
> > see my __BlobUploadSessions__ created prior to forwarding my call on
> > to have the blobs created, if I skip that forward the sessions stay as
> > I would expect, if I do the same on the AppEngine I don't see the
> > __BlobUploadSessions__, it appears that they are not being created
> > successfully and that is maybe what is "Not found"
>
> > Thank you,
> > Patrick
>
> > On May 19, 3:58 pm, Patrick Brown  wrote:
>
> > > Hi
>
> > >    Sorry to reply to my own message but I am a bit stuck for now, has
> > > anyone done anything similar or have any pointers on where I should
> > > research?
>
> > > Thanks,
> > > Patrick
>
> > > On May 17, 2:13 pm, Patrick Brown  wrote:
>
> > > > Hello
>
> > > >    I have a silverlight application hosted in my Index.html page that
> > > > I am able to upload blobs through to the DevAppServer.  Last week I
> > > > enabled billing in my application, when I attempt in production I
> > > > receive a "Not Found" exception after post but prior to my success
> > > > handler being called.  To make this work I am creating a multipart
> > > > form in silverlight and posting to an "attach" servlet ( shown here ),
> > > > I see all the log messages but my upload handler is not hit running
> > > > under the AppEngine.  Any ideas where I am going wrong or is there a
> > > > better approach?
>
> > > >   I should say, I am very new to all of the technologies I am using
> > > > here so I am sorry if my description is a bit rough.
>
> > > > Thank you for your time and ideas.
> > > > Patrick
>
> > > > public void doPost(HttpServletRequest req, HttpServletResponse resp)
> > > > throws IOException
> > > > {
> > > >   log.info("Post attachment started");
> > > >   BlobstoreService blobstoreService =
> > > > BlobstoreServiceFactory.getBlobstoreService();
> > > >   String uploadUrl = blobstoreService.createUploadUrl("/upload");
>
> > > >   log.info("Upload URL created");
> > > >   RequestDispatcher dispatcher =
> > > > req.getRequestDispatcher(uploadUrl);
> > > >   log.info(String.format("dispatcher for %s retrieved", uploadUrl));
>
> > > >   try {
> > > >      log.info("forwarding");
> > > >      dispatcher.forward(req, resp);
> > > >      log.info("forwarded");
> > > >   } catch (ServletException e) {
> > > >      e.printStackTrace();
> > > >      log.info(e.getMessage());
> > > >   }
>
> > > > }
>
> > > > --
> > > > 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-j...@googlegroups.com.
> > > > To unsubscribe from this group, send email to 
> > > > google-appengine-java+unsubscr...@googlegroups.com.
> > > > For more options, visit this group 
> > > > athttp://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-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > google-appengine-java+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-appengine-java?hl=en.-Hidequoted 
> > > text -
>
> > > - Show quoted text -
>
> > --
> > 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-j...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine-java+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine-java?hl=en.-Hide quoted 
> > text -
>
> > - Show quoted text -

-- 
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-j...@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: Upload to Blob Storage from Silverlight 4

2010-11-15 Thread MANISH DHIMAN
Hello Patrick,
I am facing problem when I use request dispatcher to upload file.
Please provide me detail about how you overcome this problem.

-- 
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-j...@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.