I am getting a file access denied when I try to send and image in the
datastore as an attachment. I there any way around this?
Code (result.get(i).getAssociatedImage is the url where it is stored
on the database. In this case, it is http:\127.0.0.1:8888\image?
title=t609i1) :
 // second part (the image)
                        messageBodyPart = new MimeBodyPart();
                        DataSource fds = new FileDataSource
                          (result.get(i).getAssociatedImage());
                        messageBodyPart.setDataHandler(new
DataHandler(fds));
                        messageBodyPart.setHeader("Content-
ID","<image>");

                        // add it
                        multipart.addBodyPart(messageBodyPart);
Exception:
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract boolean com.***.emailAssociatedImages()' threw an
unexpected exception: java.security.AccessControlException: access
denied (java.io.FilePermission http:\127.0.0.1:8888\image?title=t609i1
read)

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to