Questions Tagged With filehttps://answers.axonivy.com/tags/file/?type=rssquestions tagged <span class="tag">file</span>enFri, 22 Nov 2019 06:23:15 -0500Temporary file got overridehttps://answers.axonivy.com/questions/4183/temporary-file-got-override<p>Hi Fold,</p> <p>I got an issue with <code>ch.ivyteam.ivy.scripting.objects.File</code>.</p> <p>When our Ivy application receive a file via SOAP with the same name all the time Ex: Information.html</p> <p>We create a temporary file </p> <pre><code>ch.ivyteam.ivy.scripting.objects.File file = new ch.ivyteam.ivy.scripting.objects.File(path,true) </code></pre> <p>The problem happens is when 2 requests come at the same time, the second temporary file overrode the first one.</p> <p>Is there any way to avoid it without change file name? or add subfolder (caseId) like IDocumentService in temporary file?</p>docvominhFri, 22 Nov 2019 06:23:15 -0500https://answers.axonivy.com/questions/4183/temporary-file-got-overridefileHow to persist fields in ivy repo but not index in elastic?https://answers.axonivy.com/questions/4010/how-to-persist-fields-in-ivy-repo-but-not-index-in-elastic<p>For some projects it is interesting to store all data including files to the database so we can run such instances in docker and share the database. This way it would be possible to store the data in the business repo, even as we seen in <a href="https://answers.axonivy.com/questions/1779/how-can-i-persist-a-file-as-blob">https://answers.axonivy.com/questions/1779/how-can-i-persist-a-file-as-blob</a> it is not always efficient. But we would not need to index the base64 conent of the file in elastic. Is it possible?</p>adamfTue, 24 Sep 2019 02:58:44 -0400https://answers.axonivy.com/questions/4010/how-to-persist-fields-in-ivy-repo-but-not-index-in-elasticfilebusiness-dataelasticsearchpersistencerepositoryHow to upload a File to a REST apihttps://answers.axonivy.com/questions/3777/how-to-upload-a-file-to-a-rest-api<p>I am building a document management service with a RESTful API. </p> <pre><code>@Path("fileUpload") public class FileUploadService { @PUT @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.MULTIPART_FORM_DATA) public Response uploadFile(@FormDataParam("file") InputStream fileStream, @FormDataParam("file") FormDataContentDisposition fileDetail) throws IOException { .... } } </code></pre> <p>It seems to work as expected if I use a third party client such as Postman. However, when using the REST activity of ivy I am unable to call this service. I always get errors stating the the header <code>X-Requested-By</code> is missing. Whats the issue? How can I send files using a REST Client Call activity?</p>SupportIvyTeamThu, 18 Apr 2019 04:05:19 -0400https://answers.axonivy.com/questions/3777/how-to-upload-a-file-to-a-rest-apifileuploadrestfileHow to access file picked up by FilePickupStartEventBean?https://answers.axonivy.com/questions/3557/how-to-access-file-picked-up-by-filepickupstarteventbean<p>Hello. I'm trying to create a simple process that takes the file at a specified path and logs its name(Java Program Start -&gt; Script -&gt; End).The problem is that I'm not sure how I can access the file in the script element.</p>AdrianFri, 23 Nov 2018 09:16:12 -0500https://answers.axonivy.com/questions/3557/how-to-access-file-picked-up-by-filepickupstarteventbeanfileHow to quick search for some text in a mod file?https://answers.axonivy.com/questions/3277/how-to-quick-search-for-some-text-in-a-mod-file<p>Hello IvyTeam,</p> <p>We need often to search for some code snippet in some big Ivy Process files (.mod). We can do it in the text editor but it is not very handy to change anything there. The best would be to search with CTRL+F for some text. Then the designer should highlight the Steps where this text has been found. This would be a great help for our productivity.</p> <p>Do you plan to do such an improvement? </p> <p>Thanks in advance Emmanuel</p>Emmanuel CombaThu, 17 May 2018 10:47:34 -0400https://answers.axonivy.com/questions/3277/how-to-quick-search-for-some-text-in-a-mod-fileprocessfileTemporary file is not stored in a session subfolderhttps://answers.axonivy.com/questions/2993/temporary-file-is-not-stored-in-a-session-subfolder<p>Hi,</p> <p>we are using the ch.ivyteam.ivy.scripting.objects.File object to create a temporary file, which we want to use as a source for a stream. This seems to work fine and we have no troubles in our development environment. </p> <p>In our productive environment, however, we expierence sometimes a "file not found" exception. As far as I know, the temporary files should be stored in a temp folder like /files/sessions/{sessionID}/ .</p> <p>In our environment, these files are not in a session subfolder but can be found directly in the folder /session/tempfileXYZ. We therefore assume that whenever we close a session, the whole tempfolder is deleted, which will result in our "file not found" exception for other users.</p> <p>Is there any way to enable that files will be stored in session folders again?</p> <p>Thx,</p> <p>Gerald</p>GeraldTue, 21 Nov 2017 08:06:27 -0500https://answers.axonivy.com/questions/2993/temporary-file-is-not-stored-in-a-session-subfolderfileError when getting a File and putting in process Casehttps://answers.axonivy.com/questions/2704/error-when-getting-a-file-and-putting-in-process-case<p>Hi all,</p> <p>I'm writing a process that must start when a PDF file comes to a folder, and then, use this file (PDF ) in a Dialog to show it to the user -I guess that I can reference in a a-href HTML tag the file to open it by clicking on the link, but I'm not sure if that it's the best way to do it-. I have implemented a ch.ivyteam.ivy.process.eventstart.beans.FilePickupStartEventBean start, and this is working fine. Then, in a script step, I'm trying to put the file in context in order to use it later in forms the way I've explained. So I've got a subprocess like: </p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/Image_3_ReciWmX.png"></p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/Image_5.png"></p> <p>With this code inside script step:</p> <pre><code>import ch.ivyteam.ivy.workflow.document.IDocumentService; File file = new File(in.pdfPath,true); ivy.case.documents().add(file.getName()); </code></pre> <p>But now, I'm getting this error:</p> <pre><code>IvyScriptMethodNotFoundException: Method add(String) for class ch.ivyteam.ivy.workflow.internal.document.LegazyCaseDocumentService of classloader org.eclipse.osgi.internal.loader.EquinoxClassLoader@6eae3730[ch.ivyteam.ivy.workflow:6.6.0.201704281153(id=100)] not found IvyScriptRuntimeException: IvyScript Runtime Exception in Instruction: ivy.case.documents().add(file.getName()) Block: es.jcd.axonivy.altapersonal.AltaEmpleadoData out; out = in; File file = new File(in.pdfPath, true); ivy.case.documents().add(file.getName()); BpmError: ivy:error:script RequestException: ivy:error:script Process Start Event Bean ch.ivyteam.ivy.process.eventstart.beans.FilePickupStartEventBean [class=ch.ivyteam.ivy.process.eventstart.beans.FilePickupStartEventBean, path=15BECE1340C42A33/eventLink.ivp] fire has been failed [errorId=15CB194B8537DCC2, request=Business Processes/02_Alta_Personal_Impl.mod/eventLink.ivp(4.4.0.0), session=0 (SYSTEM), task=4, application=2147483647, requestId=76, executionContext=SYSTEM, pmv=designer$JCD_Alta_Personal$1] ch.ivyteam.ivy.request.RequestException: ivy:error:script at ch.ivyteam.ivy.request.RequestException$RequestExceptionBuilder.build(RequestException.java:166) at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleNormalRequest(BpmEngine.java:194) at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleRequestWithinContext(BpmEngine.java:140) at ch.ivyteam.ivy.request.impl.ContextAwareRequestHandler.handleRequest(ContextAwareRequestHandler.java:32) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanEngine.handleRequest(ProcessStartEventBeanEngine.java:442) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanRuntime.fireProcessStartEventRequest(ProcessStartEventBeanRuntime.java:229) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanRuntime.fireProcessStartEventRequestAsSystem(ProcessStartEventBeanRuntime.java:202) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanRuntime$3.call(ProcessStartEventBeanRuntime.java:142) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanRuntime$3.call(ProcessStartEventBeanRuntime.java:1) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1313) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanRuntime.fireProcessStartEventRequest(ProcessStartEventBeanRuntime.java:137) at ch.ivyteam.ivy.process.eventstart.beans.FilePickupStartEventBean.processFile(FilePickupStartEventBean.java:160) at ch.ivyteam.ivy.process.eventstart.beans.FilePickupStartEventBean.findAndReadFiles(FilePickupStartEventBean.java:111) at ch.ivyteam.ivy.process.eventstart.beans.FilePickupStartEventBean.poll(FilePickupStartEventBean.java:362) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanHolder.pollInContext(ProcessStartEventBeanHolder.java:163) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanHolder.pollInternal(ProcessStartEventBeanHolder.java:148) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanHolder$PollJob.execute(ProcessStartEventBeanHolder.java:559) at ch.ivyteam.ivy.job.internal.JobManager$1.call(JobManager.java:382) at ch.ivyteam.ivy.job.internal.JobManager$1.call(JobManager.java:1) at ch.ivyteam.util.callable.ExecutionContextContainer$ContainerExecutionContext.call(ExecutionContextContainer.java:92) at ch.ivyteam.ivy.security.internal.SecurityManager.executeInContext_aroundBody0(SecurityManager.java:1365) at ch.ivyteam.ivy.security.internal.SecurityManager.executeInContext_aroundBody1$advice(SecurityManager.java:41) at ch.ivyteam.ivy.security.internal.SecurityManager.executeInContext(SecurityManager.java:1) at ch.ivyteam.util.callable.ExecutionContextContainer$ContainerExecutionContext.call(ExecutionContextContainer.java:88) at ch.ivyteam.util.callable.ExecutionContextContainer.executeInContext(ExecutionContextContainer.java:27) at ch.ivyteam.ivy.job.internal.JobManager.execute(JobManager.java:376) at ch.ivyteam.ivy.job.internal.Job.run(Job.java:56) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [errorId=15CB194B8537DCC2, request=Business Processes/02_Alta_Personal_Impl.mod/eventLink.ivp(4.4.0.0), session=0 (SYSTEM), task=4, application=2147483647, requestId=76, executionContext=SYSTEM, pmv=designer$JCD_Alta_Personal$1, processElement=15BECE1340C42A33-S40-f15] Caused by: BpmError ivy:error:script Unique ID: 15CB194B8537DCC2 Process Element: Subir PDF al proceso &lt;15BECE1340C42A33-S40-f15&gt; at ch.ivyteam.ivy.bpm.error.BpmErrorBuilder.build(BpmErrorBuilder.java:204) at ch.ivyteam.ivy.bpm.engine.restricted.error.BpmErrorConverter.toBpmError(BpmErrorConverter.java:30) at ch.ivyteam.ivy.bpm.exec.restricted.scripting.BpmIvyScriptExecutor.executionException(BpmIvyScriptExecutor.java:117) at ch.ivyteam.ivy.scripting.restricted.execution.AbstractIvyScriptExecutor.execute(AbstractIvyScriptExecutor.java:167) at ch.ivyteam.ivy.bpm.exec.restricted.scripting.BpmIvyScriptExecutor.execute(BpmIvyScriptExecutor.java:84) at ch.ivyteam.ivy.bpm.exec.internal.activity.script.ScriptExecutor.execute(ScriptExecutor.java:31) at ch.ivyteam.ivy.bpm.exec.internal.activity.script.ScriptExecutor.execute(ScriptExecutor.java:1) at ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.SimpleActivityExecutorAdapter.execute(SimpleActivityExecutorAdapter.java:36) at ch.ivyteam.ivy.bpm.engine.internal.model.ProcessElement.lambda$0(ProcessElement.java:215) at ch.ivyteam.ivy.bpm.engine.internal.model.ProcessElement.executeInElementContext(ProcessElement.java:286) at ch.ivyteam.ivy.bpm.engine.internal.model.ProcessElement.execute(ProcessElement.java:215) at ch.ivyteam.ivy.bpm.engine.internal.core.ProcessElementExecution.execute(ProcessElementExecution.java:37) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.handleExecution(RequestProcessor.java:140) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.processRequest(RequestProcessor.java:130) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.handleRequest(RequestProcessor.java:95) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.handleRequest(RequestProcessor.java:77) at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleNormalRequest(BpmEngine.java:190) ... 30 more [errorId=15CB194B8537DCC2, request=Business Processes/02_Alta_Personal_Impl.mod/eventLink.ivp(4.4.0.0), session=0 (SYSTEM), task=4, application=2147483647, requestId=76, executionContext=0 (SYSTEM), pmv=designer$JCD_Alta_Personal$1, processElement=15BECE1340C42A33-S40-f15] Caused by: ch.ivyteam.ivy.scripting.exceptions.runtime.IvyScriptRuntimeException: IvyScript Runtime Exception in Instruction: ivy.case.documents().add(file.getName()) Block: es.jcd.axonivy.altapersonal.AltaEmpleadoData out; out = in; File file = new File(in.pdfPath, true); ivy.case.documents().add(file.getName()); at ch.ivyteam.ivy.scripting.internal.language.IvyScriptEnginePerformer.wrapException(IvyScriptEnginePerformer.java:1672) at ch.ivyteam.ivy.scripting.internal.language.IvyScriptEnginePerformer.visitControlInstructionInvoke(IvyScriptEnginePerformer.java:678) at ch.ivyteam.ivy.scripting.internal.language.ControlInstructionInvoke.acceptControlInstructionVisitor(ControlInstructionInvoke.java:98) at ch.ivyteam.ivy.scripting.internal.language.ControlInstruction.acceptInstructionVisitor(ControlInstruction.java:55) at ch.ivyteam.ivy.scripting.internal.language.IvyScriptEnginePerformer.execute(IvyScriptEnginePerformer.java:170) at ch.ivyteam.ivy.scripting.internal.language.IvyScriptEnginePerformer.execute(IvyScriptEnginePerformer.java:126) at ch.ivyteam.ivy.scripting.internal.language.IvyScriptEngine.executeInternal(IvyScriptEngine.java:312) at ch.ivyteam.ivy.scripting.internal.language.IvyScriptEngine.execute(IvyScriptEngine.java:281) at ch.ivyteam.ivy.scripting.restricted.execution.AbstractIvyScriptExecutor.executeInstruction(AbstractIvyScriptExecutor.java:197) at ch.ivyteam.ivy.bpm.exec.restricted.scripting.BpmIvyScriptExecutor.lambda$0(BpmIvyScriptExecutor.java:90) at ch.ivyteam.ivy.security.internal.SecurityContext.executeAs(SecurityContext.java:1289) at ch.ivyteam.ivy.bpm.exec.restricted.scripting.BpmIvyScriptExecutor.executeSecurely(BpmIvyScriptExecutor.java:103) at ch.ivyteam.ivy.bpm.exec.restricted.scripting.BpmIvyScriptExecutor.executeInstruction(BpmIvyScriptExecutor.java:90) at ch.ivyteam.ivy.scripting.restricted.execution.AbstractIvyScriptExecutor.execute(AbstractIvyScriptExecutor.java:158) ... 43 more [errorId=15CB194B8537DCC2, request=Business Processes/02_Alta_Personal_Impl.mod/eventLink.ivp(4.4.0.0), session=0 (SYSTEM), task=4, application=2147483647, requestId=76, executionContext=0 (SYSTEM), pmv=designer$JCD_Alta_Personal$1, processElement=15BECE1340C42A33-S40-f15] Caused by: ch.ivyteam.ivy.scripting.exceptions.invocation.IvyScriptMethodNotFoundException: Method add(String) for class ch.ivyteam.ivy.workflow.internal.document.LegazyCaseDocumentService of classloader org.eclipse.osgi.internal.loader.EquinoxClassLoader@6eae3730[ch.ivyteam.ivy.workflow:6.6.0.201704281153(id=100)] not found at ch.ivyteam.ivy.scripting.internal.language.IvyScriptEnginePerformer.visitControlInstructionInvoke(IvyScriptEnginePerformer.java:631) ... 55 more </code></pre> <p>Any idea?</p> <p>TIA</p>jirazazabalFri, 16 Jun 2017 11:48:33 -0400https://answers.axonivy.com/questions/2704/error-when-getting-a-file-and-putting-in-process-casecasefilehow can i read File from Databasehttps://answers.axonivy.com/questions/2675/how-can-i-read-file-from-database<p>Hello,</p> <p>I have a BLOB file in my mysql database. When reading, the line is a recor<img alt="alt text" src="http://answers.axonivy.com/upfiles/Bildschirmfoto_2017-06-06_um_15.39.10_K1murx1.png">d and the field (blob) is an Object. How do I convert an object to a file data type from the ivyscript?</p> <p>You can see it at the attachmend.</p> <p>Thanks</p>metehanTue, 06 Jun 2017 09:44:22 -0400https://answers.axonivy.com/questions/2675/how-can-i-read-file-from-databasefileUse a picked up PDF in a processhttps://answers.axonivy.com/questions/2660/use-a-picked-up-pdf-in-a-process<p>Hi all,</p> <p>I have a process that starts when a PDF file comes to a folder. I have configured a program start like that:</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/Image_1.png"></p> <p>And process data class like this:</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/Image_2.png"></p> <p>But when the process starts when a file arrives to this folder, i have a NULL value in pdfPath attribute. I don't know why this happens, and I need to use this PDF file in HTML Dialogs.</p> <p>Any idea?</p> <p>Thanks in advance</p>jirazazabalThu, 01 Jun 2017 08:00:44 -0400https://answers.axonivy.com/questions/2660/use-a-picked-up-pdf-in-a-processfileHow to read file from a subfolder in files/application?https://answers.axonivy.com/questions/2529/how-to-read-file-from-a-subfolder-in-files-application<p>Hello,</p> <p>we created a subfolder in files/application and uploaded a file in this subfolder. Now I would like to read this file to send it as an Email-attachment.</p> <pre><code>File f = new File("subfolder\\testfile.pdf",false); java.io.File Anhang =new java.io.File(f.getName()); in.anhang=Anhang; </code></pre> <p>But ivy doesn't find the File. When we upload the file directly in files/application it works.</p> <p>Thank you.</p>hayitFri, 24 Mar 2017 13:48:34 -0400https://answers.axonivy.com/questions/2529/how-to-read-file-from-a-subfolder-in-files-applicationfileuploademailfileHow can i persist a file as BLOB?https://answers.axonivy.com/questions/1779/how-can-i-persist-a-file-as-blob<p>Hi,</p> <p>i am using the primefaces fileupload widget, so users can upload attatchment files. right now, i save the files on the filesystem and i persist the path to the file in the database.</p> <p>is there a way to save files as BLOB in relational database?</p> <p>Thank you for your answers!</p>joha0123Thu, 26 May 2016 16:59:17 -0400https://answers.axonivy.com/questions/1779/how-can-i-persist-a-file-as-blobjpafileivypersistenceSEPA file creationhttps://answers.axonivy.com/questions/1731/sepa-file-creation<p>Hi,<br> Did anyone realized a SEPA file creation with ivy? </p> <p>Could you give me a sample code or the description of the file definition? </p> <p>Thank you Roland </p>rolandMon, 11 Apr 2016 19:22:56 -0400https://answers.axonivy.com/questions/1731/sepa-file-creationsepafileHow to programmatically download a file from Ivy-Server "files/application"-folder into a folder on the client with JSF?https://answers.axonivy.com/questions/1471/how-to-programmatically-download-a-file-from-ivy-server-files-application-folder-into-a-folder-on-the-client-with-jsf<p>Hello! How can I download a file from the Ivy-Server's "files/application"-folder to a folder on the client with JSF per program-code? We are using only JSF in this project. No RIA. Is it possibly to download a file to the client without user-interaction in JSF, at all? Kind Regards, Helmut</p>Helmut BurgemeisterSun, 13 Sep 2015 00:42:00 -0400https://answers.axonivy.com/questions/1471/how-to-programmatically-download-a-file-from-ivy-server-files-application-folder-into-a-folder-on-the-client-with-jsfjsffileHow to send a variable number of attachments in E-Mail Stephttps://answers.axonivy.com/questions/1130/how-to-send-a-variable-number-of-attachments-in-e-mail-step<p>Hello! I have a list of files. How can I send all files in that list as attachments using the E-Mail Step? The E-Mail Step allows me only to define a known number of attachments. Or is there another way to send a E-Mail with a variable number of attachments?</p>Peter WeberFri, 23 Jan 2015 15:01:16 -0500https://answers.axonivy.com/questions/1130/how-to-send-a-variable-number-of-attachments-in-e-mail-stepfileTemporary (Ivy) file created by System session will not be deletedhttps://answers.axonivy.com/questions/1121/temporary-ivy-file-created-by-system-session-will-not-be-deleted<p>In the documentation of Ivy <a href="http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.ivyscript.html#ivy.ivyscript.reference.datatypes">File</a> (emphasis mine)</p> <blockquote> <p>A File object can be used to read/write temporary or persistent data. IvyScript Files are created in a confined area that belongs to the running application. Temporary files are created in a session-specific file area and <strong>are automatically deleted if a session ends</strong>. Temporary Files can be made persistent.</p> </blockquote> <p>If a <em>temporary</em> <code>File</code> is created, it will be located at <code>{app}/files/sessions/{sessionId}/</code>. The files then will be deleted if the session is invalidated.</p> <p>Unfortunately, this isn't true for <em>temporary</em> files created by SYSTEM user. The SYSTEM user's session is always have the <code>id</code> of <code>0</code>, hence all files created in SYSTEM user's session will be located at <code>{app}/files/sessions/0/</code>.</p> <p>It seems that Ivy Server will never invalidate SYSTEM user's session, thus all files located in the directory will by left there undeleted (same as <em>persistent</em> file).</p> <p>I don't know whether this is a known fact as a consequence of the implementation that SYSTEM user will never be invalidated or it should be considered (somehow) as a bug?</p> <p>Thanks for considering my question.</p> <p>Regards</p>Genzer HawkerFri, 16 Jan 2015 09:24:48 -0500https://answers.axonivy.com/questions/1121/temporary-ivy-file-created-by-system-session-will-not-be-deletedsessiontemporaryfileFile management in 5.1.2 jSFhttps://answers.axonivy.com/questions/1120/file-management-in-5-1-2-jsf<p>Hello,</p> <p>i am actually migration a 4.3 RIA application (which i didn't wrote) to a 5.1.2 JSF application.</p> <p>In the old application we were using the workflowUI and something called DocumentWrapper to take care of the Files linked to a case. Does something similar exist in 5.1.2 JSF ? I've found in the addOns the whole ch.ivyteam.ivy.addons.filemanager package. It is used for RIA but could we reuse something ? Or do we have to develop the whole thing ?</p> <p>Is storing files in a CMS an option ?</p>dbalasseThu, 15 Jan 2015 17:15:29 -0500https://answers.axonivy.com/questions/1120/file-management-in-5-1-2-jsfjsffileuploadfileXpertIvy / SQL : How can i write a file in a sql db?https://answers.axonivy.com/questions/1001/xpertivy-sql-how-can-i-write-a-file-in-a-sql-db<p>Hello guys i have the the xpertivy v5....following process: User have to upload a pdf file. #1 Step The pdf file have to save into a postsql db (bytea field). #2 Step The user have to open the file from db What have i done? I created a java method. I can save and read a pdf from the postsqldb but it wont work in the xpert ivy process. How can i fetch a file over the fileinputstream with the databasestep and write it to the db? How can i read the file over the db step? </p> <p>Thank you so much for your help</p>MaxIvyMon, 13 Oct 2014 15:37:37 -0400https://answers.axonivy.com/questions/1001/xpertivy-sql-how-can-i-write-a-file-in-a-sql-dbfileuploadfileHow to switch between java.io.File and ivy.scripting.objects.File?https://answers.axonivy.com/questions/199/how-to-switch-between-java-io-file-and-ivy-scripting-objects-file<p>From the Xpert.ivy help I succeeded in converting a ivy File Object to an Java File Object by using...</p> <pre><code>java.io.File tempFile = in.someIvyFileObjectInstance.getJavaFile(); </code></pre> <p>But what about the inverse way: Java File -&gt; Ivy File? I didn't found a solution for this.</p>BjörnThu, 12 Dec 2013 16:56:28 -0500https://answers.axonivy.com/questions/199/how-to-switch-between-java-io-file-and-ivy-scripting-objects-filejavafile