Re: [appengine-java] Re: pdf creation problem

2011-08-06 Thread siva vs
thanks again for your response gk.. I search that code for the OutputStream
implementation method , but i couldn't find better result for my problem i
couldn't fix yet , if you suggest any refer link that related that resources

On Thu, Aug 4, 2011 at 6:40 PM, gk goran.kar...@googlemail.com wrote:

 FileOutputStream outputs a file - but GAE has a read-only file system.

 Use another OutputStream implementation or output the stream to the
 client using HttpServletRespone.getOutputStream()

 Also read
 http://groups.google.com/group/google-appengine-java/browse_thread/thread/a06dd822a6cee160

 On Aug 4, 1:04 pm, vss technify.s...@gmail.com wrote:
  Thanks gk.. But now am using pdfjet jar, java sdk 1.5.0 now i hav the
  exception of Fileoutputstream  cannot supported in gae, is there any
  right way to rectify that.. how can i use Fileoutputstream , thanks in
  advance
 
  On Aug 2, 3:22 am, gk goran.kar...@googlemail.com wrote:
 
 
 
 
 
 
 
   See
 
  http://code.google.com/p/googleappengine/wiki/WillItPlayInJava
 
   iText is listed therein as not supported - as are many packages that
   rely on the AWT framework / Graphics 2D. Google App Engine is here
   like most other headless environments.
 
   On Aug 1, 11:09 am, vss technify.s...@gmail.com wrote:
 
I got error message of  com.lowagie.text.Document is not supported
 by
Google App Engine's Java runtime environment  in pdf creation in
 java
using itext then pdfjet also the same msg displayed and the msg of 
java.io.FileOutputStream is not supported by Google App Engine's Java
runtime  , what the problem is.. can i make any changes.. i'm using
eclipse..

 --
 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: Incoming Email Service

2009-10-24 Thread vs

I am facing the same issue.   Basically the getContent() method
returns ByteArrayInputStream instead of Multipart... Can someone
please help?

On Oct 23, 11:50 am, Kyle Roche k...@appirio.com wrote:
 Hi,

 I was able to put together an incoming email servlet that can read the
 subject and the metadata. However, I have not been able to
 successfully extract the body of the message. Can anyone post an
 example? Here's what I have so far:

 import java.io.IOException;
 import java.util.Properties;
 import javax.mail.Message;
 import javax.mail.MessagingException;
 import javax.mail.Session;
 import javax.mail.Transport;
 import javax.mail.internet.InternetAddress;
 import javax.mail.internet.MimeMessage;

 import javax.servlet.http.*;

 @SuppressWarnings(serial)
 public class MailHandlerServlet extends HttpServlet {
     public void doPost(HttpServletRequest req,
                        HttpServletResponse resp)
             throws IOException {
         Properties props = new Properties();
         Session session = Session.getDefaultInstance(props, null);
         try {
                         MimeMessage message = new MimeMessage(session, 
 req.getInputStream
 ());

                         Message emailMessage = new MimeMessage(session);
                         emailMessage.setFrom(new 
 InternetAddress(k...@gmail.com, from
 address));
                         emailMessage.addRecipient(Message.RecipientType.TO, 
 new
 InternetAddress(k...@gmail.com, to address));
                         emailMessage.setSubject(message.getSubject());

                         // HOW DO I GET THE MESSAGE?
                         emailMessage.setText(message);
                         Transport.send(emailMessage);

                 } catch (MessagingException e) {
                         // TODO Auto-generated catch block
                         e.printStackTrace();
                 }
     }

 }
--~--~-~--~~~---~--~~
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: receiving mail demo

2009-10-23 Thread vs

I'm  having the same issue  Can someone please help me with this?

On Oct 19, 12:44 pm, Prashant antsh...@gmail.com wrote:
 yes, every thing is working fine except that I am not able to fetch message
 body in suitable format.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---