Hi Fold, I got an issue with When our Ivy application receive a file via SOAP with the same name all the time Ex: Information.html We create a temporary file
The problem happens is when 2 requests come at the same time, the second temporary file overrode the first one. Is there any way to avoid it without change file name? or add subfolder (caseId) like IDocumentService in temporary file? asked 22.11.2019 at 06:23 docvominh Reguel Werme... ♦♦ |
The e.g. answered 25.11.2019 at 02:59 Reguel Werme... ♦♦ Hi Reguel, Thank for your idea :) Sadly, new File() with relative path didn't create folder, and I got file not found exception. I must create a folder manually.
But problem solved :D
(25.11.2019 at 06:15)
docvominh
If you use ch.ivyteam.ivy.scripting.objects.File it does not work? What method do you call afterwards to the tempFile?
(25.11.2019 at 06:55)
Christian St... ♦
I try to write byte[] to that temp file FileOutputStream fos = new FileOutputStream(tempFile.getJavaFile()); fos.write(fileData);
(28.11.2019 at 22:58)
docvominh
at that's the issue: as soon as 'getJavaFile()' is called, the ivy File impl is no longer in charge to ensure that necessary parent dir structures are created. So you users have to do it manually - as you did.
(29.11.2019 at 05:45)
Reguel Werme... ♦♦
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 22.11.2019 at 06:23
Seen: 1,256 times
Last updated: 29.11.2019 at 05:45