Fix TDIS-5756
[apps/osp/ImageViewer.git] / src / IvImageViewerForm.cpp
index 3f44086..bf56b89 100644 (file)
@@ -1107,7 +1107,7 @@ void
 ImageViewerForm::DownloadFile(void)
 {
        AppLogDebug("ENTER");
-       String DestPath = App::GetInstance()->GetAppRootPath() + TEMP_FILE_PATH_WEB_FILE;
+       String DestPath = App::GetInstance()->GetAppSharedPath() + PATH_DATA_DIRECTORY + TEMP_FILE_PATH_WEB_FILE;
        if (File::IsFileExist(DestPath) == false)
        {
                AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
@@ -2156,7 +2156,7 @@ ImageViewerForm::OnImageDecodeUrlReceived (RequestId reqId, Bitmap *pBitmap,
        Image* pImage = new (std::nothrow) Image();
        pImage->Construct();
 
-       String destPath = App::GetInstance()->GetAppRootPath() + TEMP_FILE_PATH_WEB_FILE;
+       String destPath = App::GetInstance()->GetAppSharedPath() + PATH_DATA_DIRECTORY + TEMP_FILE_PATH_WEB_FILE;
        r = pImage->EncodeToFile(*pBitmap, IMG_FORMAT_JPG, destPath, true);
 
        if (r == E_SUCCESS)