git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@7805 b35dd754-fafc-0310-a699-88a17e54d16e

This commit is contained in:
Francisco Vives
2007-03-29 21:29:22 +00:00
committed by francisco
parent fe9914978a
commit f0d13eb9b3
10 changed files with 28 additions and 16 deletions

View File

@ -665,7 +665,7 @@ public class SparkTransferManager {
* @param room the ChatRoom of the user you wish to send the image to.
*/
public void sendImage(final Image image, final ChatRoom room) {
File tmpDirectory = new File(Spark.getUserHome(), "Spark/tempImages");
File tmpDirectory = new File(Spark.getUserSparkHome(), "/tempImages");
tmpDirectory.mkdirs();
String imageName = "image_" + StringUtils.randomString(2) + ".png";